users@glassfish.java.net

CDI _at_PersistenceContext not working when DAO/Bean in own Jar (GFv3)

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Fri, 30 Apr 2010 17:38:20 +0200

Hi,

I've created a small servlet/jax-rs service and tried to inject my
dao's which where in another jar. Injecting of the DAOs worked,
however their EntityManager ( annotated through
@PersistenceContext("nameOfThePU") )
was not injected.

When I copied the DAOs to the same project, the injection works
without a problem.


I think thats a bug... anyone else experienced this behavior?

kind regards,
dominik
-- 
Dominik Dorn
http://dominikdorn.com
Tausche Deine Lernunterlagen auf http://www.studyguru.eu !