Actually, there would be still a collision between CDIProvider from Weld SE (org.jboss.weld.environment.se.WeldSEProvider) and the one from Weld Servlet. WeldSEProvider should work fine for your use case. Hm, I'm just looking at CDI.current() and it takes the first provider which can access the container.
|