> I am looking at http://java.net/jira/browse/SERVLET_SPEC-17
> I would like to put the request in error state when there is an exception in AsyncListener.
I think the bug description is a bit sketchy in detail on what the 'error state' would mean.
Also, the listener's methods invocation contexts are different. onStart will be invoked from a thread dedicated to serving the request, so the user's code should handle the exceptions arising from onStart() calls.
onComplete, onError and onTimeout are different.
Exceptions in onError should result in freeing the container resources, closing the connection without flushing()
-onTimeout – the same.
-onComplete - closes the Response, so there is nothing to do except logging the exception.
Alex
> Please let me know if you have any concern.
> Shing Wai Chan