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]

_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to