[weld-dev] rationale for JTA/JPA questions - trying to add JPA support to archetypes

Dan Allen dan.j.allen at gmail.com
Sat Nov 28 13:11:50 EST 2009


On Sat, Nov 28, 2009 at 12:40 PM, Gavin King <gavin.king at gmail.com> wrote:

> No, in EE5 you used @PersistenceContext, which is nontypesafe and doesn't
> support stuff like alternatives. In EE6 you should use CDI to @Inject your
> EntityManager just like any other bean.
>

Right, the point is we are going to hide @PersistenceContext one way or
another (either w/ a producer field or just bypassing it with an extension).
The point I believe Gavin is making is that the developer should only need
to work with @Inject because of its obvious benefits.

-Dan

-- 
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://www.google.com/profiles/dan.j.allen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20091128/0a6186d4/attachment.html 


More information about the weld-dev mailing list