This needs to go in jar (library) rather than the war (app)
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 12 Mar 2013 21:20:14 +0000 (17:20 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Tue, 12 Mar 2013 21:20:14 +0000 (17:20 -0400)
commitdd83bb2cc27ee61ae810da2dfff5390ba9f4ab3c
treeebd753b868c9c24c5c87273f1ed260968d326d6a
parent69668fd0aa6d3cad1bc43459d9f63bd41931169d
This needs to go in jar (library) rather than the war (app)

Goes for Glassfish as well as JBoss it seems.
This sort of defies one purpose of dependency injection. You
want to be able to code alternative implementations in a library,
but have the application using that library decide deploy-time
which implementation to use.

Strangely enough this works in Tomcat 7 with Weld included in the jar.

I believe following ticket is about this issue:
https://issues.jboss.org/browse/CDI-18
src/META-INF/beans.xml