axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Betts, Hendry" <Hendry.Be...@viasat.com>
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
process.

 

 

________________________________

From: rahul yadav [mailto:rahulyadav20@gmail.com] 
Sent: Tuesday, April 20, 2010 6:33 AM
To: axis-user@ws.apache.org
Subject: infinite timeout for WS request

 

is there a way to set infinite time in..


org.apache.axis2.client.Option.setTimeOutInMilliSeconds(long
timeOutInMilliSeconds).



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


Mime
View raw message