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. |
- client timeout Vincent G. Ladlad
- Alan Ong