This content has been marked as final.
Show 1 reply
-
1. Re: Receive Time out on Context Lookup
jonlee Jul 10, 2003 9:21 PM (in response to raj_sohal)You could try switching to the timed socket factory and changing the values appropriately:
jndiProps.setProperty("jnp.socketFactory", "org.jnp.interfaces.TimedSocketFactory");
jndiProps.setProperty("jnp.timeout", "0");
jndiProps.setProperty("jnp.sotimeout", "0");
where jndiProps is the set of properties defined for your inital context for the lookup.
jnp.timeout is the connection timeout.
jnp.sotimeout is the read timeout.
Both are in milliseconds - type int.