users@glassfish.java.net

Re: CDI broken between EJB and JPA modules

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Jun 2010 08:51:22 PDT

> I always have to add the unitName="nameOfYourPU" to
> the @PersistenceContext
>
> (
>
> like
> @PersistenceContext(unitName="nameOfYourPU")
> EntityManager em;
>
> )
>
>
> annotation to get cdi dao's working.
>
> have you tried that?
>
Thanks for the hint.
I have, but no success.
However, the spec does not require this if you have only one PU in your project.
[Message sent by forum member 'jhasenbe']

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