Title: Message Title
|
|
|
|
Thanks for the report. Weld SE and Servlet can cooperate (i.e. share the container initialized by SE). However, you have to bind the {{BeanManager}} (from SE) in the ServletContext before you start the servlet container. The log file attribute name should be {{org.jboss.weld.environment.servlet.javax.enterprise.inject.spi.BeanManager}}. See also [the test|https: / console output or a simple reproducer ( /github.com/mkouba/core/blob/WELD-1665/environments/servlet/tests/jetty/src/ test case / app weld-se-coop/org/jboss/weld/environment/servlet/test/se/coop/BootstrapNotNeededTest.java#L38] which indicates how this should work. AFAIK this feature is not documented yet (I will create an issue to fix this ) would be helpful .
In your example, Weld Servlet does not pick up Tomcat as there is probably no beans.xml in your shaded jar, is it?
|
|
|
|
|
|
|
|
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues