client

Java two- way socket connection (server/ client)

一世执手 提交于 2019-12-12 12:00:27
问题 what I'm trying to do is to send some JSON from an Android phone to a Java server, which works fine. The Android/ client side looks like this: Socket s = new Socket("192.168.0.36", 12390); s.setSoTimeout(1500); JSONObject json = new JSONObject(); json.put("emergency", false); json.put("imei", imei); json.put("lat", l.getLatitude()); json.put("lon", l.getLongitude()); json.put("acc", l.getAccuracy()); json.put("time", l.getTime()); BufferedWriter out = new BufferedWriter(new OutputStreamWriter

Java Certificate Client SSL: unable to find valid certification path to requested target

陌路散爱 提交于 2019-12-12 09:15:32
问题 We require client authentication to send a RESTful request to some of our web services. I've installed a client cert (.pem) and key on the my local mac os via the key tool. These are not self signed. openssl pkcs12 -export -name myservercert -in not_self_signed.crt -inkey server.key -out keystore.p12 ...and converted to JKS format keytool -importkeystore -destkeystore mykeystore.jks -srckeystore keystore.p12 -srcstoretype pkcs12 -alias myservercert I'm trying to build a Java client to do the

Generic Open Source REST Client? [closed]

微笑、不失礼 提交于 2019-12-12 08:23:27
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I want a simple client that takes a few parameters (Method, URL, Parameters), makes an HTTP request, and shows me the results that

Configure Apache to send SSL Client certificate to backend server

允我心安 提交于 2019-12-12 07:49:48
问题 i want to configure Apache so that it receives a client certificate, an passes it to another server. I'm using: apache 2.0.65 on windows the backend server is an apache-based solution (IBM HTTP Server) I tried this config: <VirtualHost *:443> ServerName apacheserver.domain.com SSLEngine on SSLProxyEngine on SSLCertificateFile "e:/Apache/Apache2/conf/server.cer" SSLCertificateKeyFile "e:/Apache/Apache2/conf/server.key" SSLCACertificateFile "e:/Apache/Apache2/conf/certca.cer" SSLVerifyClient

forece refresh client page from server side [closed]

假如想象 提交于 2019-12-12 07:22:30
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . How may I refresh current client view page from the server side? for example, if I want to force refresh for page that is viewing now for all the clients, so they can view the new content. and I want to do this

Glassfish 3.1.2 configuration Client Certificate for Mutual Authentication

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 07:14:04
问题 I need help in configuring GF3.1.2 i have done following changes, please do let me know if i am missing anything important as after changes it is NOT working. my id is nilesh2811@gmail.com I could not found any particular thread or answers in forum if any link is there will be helpful. if you have any document for this please forward. please do the needful web.xml <login-config> <auth-method>CLIENT-CERT</auth-method> </login-config> <security-constraint> <web-resource-collection> <web

ObjectInputStream constructor hangs program

我的未来我决定 提交于 2019-12-12 06:45:44
问题 I have tried every solution I can find to this problem. server = new ServerSocket(9421); client = new Socket("localhost", 9421); out = new ObjectOutputStream(client.getOutputStream()); out.flush(); System.out.println("Starting input streams"); in = new ObjectInputStream(client.getInputStream()); System.out.println("input streams are now running"); Everything tells me to declare the objectInputStream before the ObjectInputStream. Other places tell me to flush the Object output stream. This

Access EJB from Application Client (project configuration)

有些话、适合烂在心里 提交于 2019-12-12 06:36:35
问题 I know this has been asked before, but i can't find a good answer So I want to have an client application that calls remote ejbs. For this i have 2 ear applications. One ear with the ejb module, and another ear with the application client module. In the client module i am trying to inject in the Main() class the EJB with @EJB annotation. application.xml for the EJB: <?xml version="1.0" encoding="UTF-8"?> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun

using an instance of an object as a client in java

心不动则不痛 提交于 2019-12-12 05:33:42
问题 I have an assignment where I have to create a multithreaded hangman game with a server and client. I am thinking that will I create a class where I will make the game(Hangman), and a Server class with the main method any the try catch block. A client class will have the client which will connect to the port and will be able to play. My question is, how can I create the client in my hangman game and start sending the requests to the server as objects and not as a separate program? 回答1: In Java

What are the best way to launch client exe?

浪子不回头ぞ 提交于 2019-12-12 05:27:51
问题 I am creating a web application which need to launch "NXClient" at client machine. So what are the best way to do it ? Thanks 回答1: This is not possible. Instead, you can associate an extension with your program on the client, then serve a file with that extension, and the program will open it. 回答2: Edited to remove a suggestion that works only in IE, and with annoying prompts at that... To launch it without user interaction is, as @SLaks says, impossible from pure ASP.NET, and for good reason