-
1. Re: EnhancedListener destroying CDI context too early
mkouba Dec 5, 2014 8:36 AM (in response to thfr)Hi Thilo,
I believe this is a bug in EnhancedListener. It should not shutdown the Weld if org.jboss.weld.environment.servlet.Listener is registered because it's always added to the end of the list of listeners from web.xml (i.e. its contextDestroyed() is called before any listeners defined in web.xml). I've created the issue: https://issues.jboss.org/browse/WELD-1808
-
2. Re: EnhancedListener destroying CDI context too early
thfr Dec 5, 2014 10:47 AM (in response to mkouba)Thanks for your quick reply! Are you aware of any workarounds until this bug will be fixed? For instance, is it possible to disabled EnhancedListener and would everything else still work as expected?
-
3. Re: EnhancedListener destroying CDI context too early
mkouba Dec 8, 2014 3:31 AM (in response to thfr)Well, there is no Weld-specific way to disable the EnhancedListener (it's actually a
ServletContainerInitializer
). However, you can use container-specific configuration, e.g.containerSciFilter
attribute of the Context for Tomcat.