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

tom.elrod@jboss.com do-not-reply at jboss.com
Fri Feb 23 22:57:46 EST 2007


Will need to make sure the timeout is getting set for the client.  If are using remoting discovery to get the locator url for the client to use, then need to make sure the isParam attribute is set to true in your invokers-service.xml.  For example:


  | <attribute name="timeout" isParam="true">60000</attribute>
  | 

This way, when the client gets the locator url with the timeout built in as a url parameter (i.e. socket://myhost:3453/?timeout=60000).

If you are creating the remoting Client class yourself and passing the locator url, will need to make sure you pass the timeout value.  More info on this at http://labs.jboss.com/portal/jbossremoting/docs/guide/ch05.html#d0e668.

BTW, if using older version of remoting, the attribute is 'socketTimeout' and for 2.x is 'timeout'.

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

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



More information about the jboss-user mailing list