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 ?

Sarit Bose

You can use:

sock.setSoTimeout(240000);

where the socket is created by the factory (default/custom) you are using.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact