[jboss-user] [Remoting] - Re: SocketTimeout in client

maheshp do-not-reply at jboss.com
Mon Feb 26 04:56:46 EST 2007


Hello Mr. Tom,

i am using following code to get the remote objects,
Hashtable<Object,String>  props = new Hashtable<Object,String> ();
			props.put(
				InitialContext.INITIAL_CONTEXT_FACTORY,
					"org.jnp.interfaces.NamingContextFactory");
			props.put(InitialContext.PROVIDER_URL, "jnp://127.0.0.1:1099");
			props.put("java.naming.factory.url.pkgs", "org.jboss.naming");
		
      		InitialContext ctx = new InitialContext(props);
      		objSecurity  = (Security) ctx.lookup(SecurityRemote.class.getName());

after setting the timeout attribute in invoker-service.xml to 120,000 it is taking the 60000 milli sec as default and it throwing timeout exception after 60000 ms.

please let me know any other options to get the remote objects, so i can avoid the timeout exception.
 



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022315#4022315

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022315



More information about the jboss-user mailing list