Hi.
I have a case that i have to make IS connect to another server using socket.
I’m using java service to connect to the server, but the problem is the IS always restart everytime i run the service. what should i do?
is there any problem with java socket in IS?
I try to connect the IS to my own PC, it’s still happen. So i think the problem may in IS?
I’m not the one who handle the server, i just wrote the java service. The server administrator saig that’s nothing wrong in the log. It’s just said the IS trying connecting to other server (non IS) then go shutdown.
Here the example of my java service
try {
echoSocket = new Socket(host, Integer.parseInt(port));
echoSocket.setSoTimeout(5000);
out = new PrintWriter(echoSocket.getOutputStream(), true);
in = new BufferedReader(new InputStreamReader(echoSocket.getInputStream()));
} catch (UnknownHostException e) {
System.err.println(“Don’t know about host”);
throw new ServiceException(e);
} catch (IOException e) {
System.err.println(“Couldn’t get I/O for the connection”);
throw new ServiceException(e);
}
But sometimes it’s work, and then suddenly shutdown the server. This make me confuse…
Is there any IS configuration to allow socket connection work properly??
Thanks for your attention…