[jboss-user] [JBoss Remoting] - client side socket timeout
Mayank Mittal
do-not-reply at jboss.com
Fri Mar 18 02:37:46 EDT 2011
Mayank Mittal [http://community.jboss.org/people/mayankmit2002] created the discussion
"client side socket timeout"
To view the discussion, visit: http://community.jboss.org/message/594000#594000
--------------------------------------------------------------
Hello ,
I've an EJB3 application running on Jboss Server and a RMI client to invoke its methods. No i've an issue in setting up time out for specific calls.
I want to set up the time out to 1 sec. I've used follwing contest properties to set up the timeout but are not working.
private static Properties getContextProperties ()
{
final Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
props.put("jnp.sotimeout", "1000");
props.put("jsun.rmi.transport.tcp.readTimeout", "10");
props.put("socketTimeout", "1000");
props.put("jnp.timeout", "1000");
props.put("timeout", "1000");
if (mActiveNetworkAddress != null)
{
props.put(NamingContext.JNP_LOCAL_ADDRESS, mActiveNetworkAddress);
}
// for HA-JNDI lookup
props.put(Context.PROVIDER_URL, "Server01:1100,Server02:1100");
props.put(NamingContext.JNP_DISABLE_DISCOVERY, "true");
return props;
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/594000#594000]
Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110318/922a0adb/attachment.html
More information about the jboss-user
mailing list