users@glassfish.java.net

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

From: Dominik Dorn <dominik.dorn_at_gmail.com>
Date: Tue, 11 May 2010 15:28:09 +0200

Ok, I tried the @Singleton trick, it still does not work.

I attached the debugger to the classes and noticed that CDI/Weld does not
detect that the class has any @PersistenceContext annotated field.

this=org.jboss.weld.bean-/home/domdorn/work/lyrix.git/webapp/target/lyrix-webapp/-ManagedBean-class
com.dominikdorn.lyrix.dao.Jpa2ArtistDao
ejbInjectionPoints = []
persistenceContextInjectionPoints = []
persistenceUnitInjectionPoints = []
resourceInjectionPoints = []
specializedBean = null
injectableFields = 2
 [0] = an empty hashset
 [1] = an empty hashset

I've attached the java source files + persistence.xml

Thanks for your help.
Dominik