You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Alan Ong <al...@ntsp.nec.co.jp> on 2003/04/04 15:01:40 UTC

Client Timeout

In my java code:

    Call oCall = new Call();

    oResponse = oCall.invoke(url);

These rpcs usually last for 5 or more hours because it is doing some batch processing.
But if the network connection is broken in the middle of the invocation, but the call will not return an exception, instead it will wait for the connection to return. If the connection returns, it will continue where it left off. Is there a way to tell if the connection is lost so that an error message can be displayed to the user. These is needed because if the connection will not return, then the caller will wait forever, thus hang the program.

Can anybody help me out.

Thanks for your time.