Naming.lookup() timeout

Hi,

Is there someway to set timeout on Naming.lookup() ? I am encountering a problem where, a lookup() call to a host that is not up, hangs for about 3-4 minutes before timing out.

I was to use customized RmiSocketFactory, but it seems that Naming.lookup() used the system default.

Any pointers would be most appreciated.

Thank you,

barke

[375 byte] By [barkea] at [2007-10-3 3:20:04]
# 1
http://java.sun.com/j2se/1.5.0/docs/guide/rmi/sunrmiproperties.html#connectionTimeout http://java.sun.com/j2se/1.5.0/docs/guide/rmi/sunrmiproperties.html#readTimeout
ejpa at 2007-7-14 21:12:12 > top of Java-index,Core,Core APIs...