Jozef Hartinger commented on Bug WELD-1598

This is a Tomcat issue. Weld expects WeldInitialListener.requestInitialized() to be invoked before any work with a request is done in a given thread and WeldInitialListener.requestDestroyed() afterwards to perform cleanup. Furthermore, Weld expects these two methods to be invoked symmetrically in the same thread (so that thread locals can be cleaned up safely).

However, this is not the case with Tomcat, which invokes each method in a different thread then a Servlet goes async.

The Servlet specification is very vague and does not define very much when/how listeners are invoked. However, Jetty and Undertow do not have this problem as they invoke the pair of listener methods in the same thread.

Until this is changed in Tomcat there is nothing we can do about it from the Weld part.

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

Reply via email to