Ways to re-establish connection between client and server on remoting?
-
My scenario is: Based on Remoting concept, Server is listening to client on particular port using TCPChannel. Suddenly Server (Listner) went off, which client does not have information. When client sends a message, error is thrown saying "No connection could be made because the target machine actively refused it". Is there any way to re-establish client - server connection? Here Server is using randomly selected ports, so we can't hardcode port at client. Client is getting information of port from configuration file created at user's local directory. Thanks
-
My scenario is: Based on Remoting concept, Server is listening to client on particular port using TCPChannel. Suddenly Server (Listner) went off, which client does not have information. When client sends a message, error is thrown saying "No connection could be made because the target machine actively refused it". Is there any way to re-establish client - server connection? Here Server is using randomly selected ports, so we can't hardcode port at client. Client is getting information of port from configuration file created at user's local directory. Thanks
From my experience, you only get the exception if you try to call a remote method while the server is down. As soon as the remoting server is running again, all remoting method calls work as if the server was there all the time. If you say that the server is using randomly selected ports, how do your clients connect to the remoting server? You have to give a URI for the remoting server object and part of it is the port, so how can this be "randomly selected"?
Regards, mav -- Black holes are the places where God divided by 0...