users@glassfish.java.net

Re: Does glassfish-embedded support jsr 330 (javax.inject)?

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 Apr 2010 15:06:40 PDT

situation was resolved by putting beans.xml (with no beans defined) into META-INF of ejb-jar. Without it the CDI bean discovery is not enabled. For those interested in motivation of this requirements I recommend:

http://relation.to/Bloggers/WhyIsBeansxmlRequiredInCDI

But i have a question for glassfish implementors, why the container does not raise exception while processing @Inject field? This will help a lot in debugging.
[Message sent by forum member 'jszczepankiewicz']

http://forums.java.net/jive/thread.jspa?messageID=395591