If an ESCI server is not responsive, ESCI inbox checks can wait indefinitely as the JAX-WS calls are not configured to time out.
There are two areas that need to support time out:
when fetching the WSDL
when making the SOAP call
There doesn't appear to be a standard way of doing this, as the following show:
Possible approaches include:
using Apache CXF instead of the JAX-WS reference implementation
making calls in separate threads, interrupting them if they take too long
aren't portable, and are jvm-wide, so shouldn't be used by default.