DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18277>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18277

Socket Timeouts for Axis Clients





------- Additional Comments From [EMAIL PROTECTED]  2003-03-24 15:41 -------
It was a pleasant surprise to find out that we already have timeout logic in 
our code.  Here is how to access it from a Stub:

 loc = new FooServiceLocator();
 binding = loc.getFooService();
 org.apache.axis.client.Stub s = (Stub) binding;
 s.setTimeout(1000);  // in miliseconds

This is a good candidate for the FAQ.

I can set the default timeout to 60 seconds, which I think is a good idea 
(anyone else have an opinion on this?).

As far as the Exception that is returned, I am sure I don't want to change 
this for 1.1, but it would be much better to have this be an exception you can 
differentiate from a Remote exception.  I will have to look in to this closer.

Reply via email to