Hi Charles and thanks for the report. Using CDI.current() could be tricky, esp. for EAR scenarios. I would stick with JNDI lookups if using EARs. In any case, there is nothing we can do in Weld - CDI.current() is using a service provider of javax.enterprise.inject.spi.CDIProvider to obtain the current container and it's the responsibility of the integrator to provide a CDIProvider implementation. By the way, WildFly CDIProvider implementation has a workaround for soteria too. |