I have a couple of questions about how to handle runtime exceptions from an
asynchronous service implementation.

1)  Can the service implementation use ResponseDispatch.sendFault() to send
ANY Throwable, or only one of the exceptions declared using @AsyncFault?  If
the former, I think there may be some issues with representing the fault in
some databindings (e.g. JAXB), since there isn't a mapping for it.  If the
latter, it means of course that an attempt to send something outside the
defined exceptions will fail, and the client won't get anything (but
presumbably will time out eventually).

2) If the service implementation fails with a runtime exception prior to
invoking ResponseDispatch (either sendResponse() or sendFault()), is it
reasonable to return a ServiceRuntimeException to the client?

Greg

Reply via email to