axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Betts, Hendry" <>
Subject RE: infinite timeout for WS request
Date Fri, 23 Apr 2010 19:50:50 GMT
First, I think (and I hope others would agree) that it is a bad idea to
use an "infinite" timeout on a web service.  Any service that is taking
"forever" to respond is broken (IMO).  


If you make your service client's timeout infinite, how do you know when
it failed?  Also, you would have to write in a number of handlers that
deal with the various timeout scenarios rather than relying on the http
client's native timeout functionality.


Ultimately, your timeout is managed in two places - at the web service's
web server and at the web service client's timeout value.  Perhaps you
should look at making your service a little more "chatty" and allowing
it to send/receive smaller data packets to avoid becoming a hung




From: rahul yadav [] 
Sent: Tuesday, April 20, 2010 6:33 AM
Subject: infinite timeout for WS request


is there a way to set infinite time in..


by default it timeout after 2000 milliSeconds, we want it to keep
waiting for infinite time.I am using Axis1.5.1

Thanks & Regards,
Rahul Yadav

View raw message