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: Sat, 1 May 2010 18:49:37 +0200

On Sat, May 1, 2010 at 2:43 PM, Ludovic Champenois
<ludovic.champenois_at_oracle.com> wrote:
> Try to put beans.xml under classes/metainf, not under webinf in the web app,
> ?
> Ludo
>
If this makes any difference, it's definitely a bug.
I can already inject the DAO so CDI is working in the webapp.

I think the problem is, that the method that scans for @PersistenceContext
does not scan nested jars.

I will try your suggestion and see if it works then, but I really doubt that.

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