users@glassfish.java.net

Re: _at_PersistenceContext ignored in library jar classes?

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Wed, 05 Sep 2012 10:20:19 -0700

Seems like a bug to me.

-marina

forums_at_java.net wrote:
> I'm injecting into a simple pojo managed bean living in a .jar in the
> ear's
> lib/-folder. beans.xml exists and injection works(other then
> @PersistenceContext). If I add some @Inject to the pojo it is done
> correctly.
> Jus So I guess CDI is set up correctly. If I give the incorrect name
> for the
> persistence unit, glassfish complains and will not deploy. If I
> correct the
> name, glassfish will deploy but inject nothing (null).
>
> --
>
> [Message sent by forum member 'bergler']
>
> View Post: http://forums.java.net/node/889633
>
>