[jboss-user] [Remoting] - Re: Timeout parameter - can I specify timeout per request?

sarbu do-not-reply at jboss.com
Wed Sep 13 21:53:07 EDT 2006

Thanks Tom, 

I made the changes as per your suggestion, the request still is timing out incorrectly. 

The client is created as shown below:
String hostName = InetAddress.getLocalHost().getHostName();
String locatorURI = "socket://" + hostName + ":5000/?timeout=120000";
InvokerLocator locator = new InvokerLocator(locatorURI);
Client client = new Client(locator);

The server connector also has the same timeout configuration. 

The changes as per your suggestion when calling the invoke:
HashMap config = new HashMap();
config.put("timeout", new Long(5000)); // Test - 5 seconds
res = client.invoke(arg, config);

The request is not timing out correctly even with the above code changes. I am using Java version 1.4.2 and JBossRemoting 1.4.1.

I am not sure if I am missing anything here. 


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

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

More information about the jboss-user mailing list