How do I set a timeout for an RMI client such that it doesn't wait indefinitely in establishing a connection to an RMI server ?
Created May 4, 2012
Sarit Bose You can use:
sock.setSoTimeout(240000);
where the socket is created by the factory (default/custom) you are using.