|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
_______________________________________________ weld-issues mailing list [email protected] https://lists.jboss.org/mailman/listinfo/weld-issues

Philip, I don't think your quick-fix is a good idea. Actually it only solves the NPE problem but does not ensure proper cleanup (e.g. request scoped instances are not correctly destroyed).
Currently Weld uses javax.servlet.ServletRequestListener to initialize and destroy the request context. This works for AS7/JBossWeb, where each javax.servlet.AsyncListener call results in AsyncListener.requestInitialized() and AsyncListener.requestDestroyed() invoked on the same thread (each call is defacto a new request which has its own CDI request context).
The question is in which context the javax.servlet.AsyncListener calls should be invoked? I cannot find anything relevant in the Servlet spec.
I'll check the security-constraints as well.