This content has been marked as final.
Show 3 replies
-
1. Re: Client timeout
jlvosters Jul 22, 2008 4:03 PM (in response to rjaros)Hello -
I was wondering if any discoveries have been made on this post. I had attempted similar code in the 3.0.2 GA release of jbossws and also could not get the timeout to occur. Really, what is needed is to have the socket throw and exception if the response does not come back in an acceptable time frame.
Thank you for any help and it would be greatly appreciated. -
2. Re: Client timeout
rjaros Jul 22, 2008 4:28 PM (in response to rjaros)In fact I have found a simple solution to this problem. Try setting
-Dsun.net.client.defaultConnectTimeout=10000 -Dsun.net.client.defaultReadTimeout=10000
properties of the JVM (both values are in milliseconds). It works for me. And I'm still using((BindingProvider)port).getRequestContext().put(StubExt.PROPERTY_CLIENT_TIMEOUT, new Integer(500));
as well, because sometimes it is necessery (I think when I can connect to remote side but I don't get any answer for a long time). -
3. Re: Client timeout
jlvosters Jul 22, 2008 4:43 PM (in response to rjaros)Thank you very much. That worked beautifully.