Guy Korland wrote:
Hi,
I found out that an RMI call might never return on network
disconnection and will not throw RemoteException as expected.
The scenario is very simple:
1. Find a remote stub (the stub should be behind a router).
2. Physically disconnect the server from the LAN.
3. Invoke a method from the client, the client can stuck without an
exception up to 30 min.
Any ideas?
--
Thanks,
Guy
I would suggest searching the archives of the rmi-users list [1]. Also
check the properties that control timeouts [2].
-Alan.
[1] http://archives.java.sun.com/archives/rmi-users.html
[2]
http://java.sun.com/javase/6/docs/technotes/guides/rmi/sunrmiproperties.html