Skip to Main Content

Java APIs


For appeals, questions and feedback about Oracle Forums, please email Please ask technical questions in the appropriate category. Thank you!

Control RMI lookup timeout

2720244Jul 24 2014 — edited Jul 29 2014

Dear all,

I'd like to ask is there way to control the RMI lookup timeout through programming or network configurations.

In a testing environment, I have purposely disconnect or plug out the cable between two testing servers to check the reliability. It took very long time for the RMI API to throw out java.rmi.ConnectException which used Naming.lookup(givenURL). I have tried to set system properties like sun.rmi.transport.tcp.handshakeTimeout, but it didn't take effect at all.

Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2014
Added on Jul 24 2014