users@glassfish.java.net

Re: Null _at_PersistenceContext: no errors, no warnings?

From: <glassfish_at_javadesktop.org>
Date: Wed, 21 Jul 2010 10:17:05 PDT

The point is, injectable beans must come from a bean archive, and a bean archive must have a beans.xml marker file.

You want N to be injectable (into M), so you need to make sure that N is in a bean archive. Whether or not N itself has any injectable dependencies is a totally different question.

At least that's what I gather from JSR 299 (ch. 5 and 12); though not at first reading, I admit ;-)

Best regards,
Harald
[Message sent by forum member 'hwellmann']

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