users@glassfish.java.net

Re: EntityManager not being injected into abstract EJB?

From: <glassfish_at_javadesktop.org>
Date: Mon, 05 Jul 2010 00:40:16 PDT

I tested my scenari against GF 3.1 build 07. My use case is:
I am using EJB embedded API (the standard)
I have a project that packages the entities and persistence.xml
I have another project with EJBs that have the entity manger corresponding to the other project injected (both via @PersistenceContext and also using CDI)
GF tests is a separate project that has all the others attached as jars (dependencies)

It seems to work; when I use gf-embedded-all.jar version 3.0.1 final it doesn't work.

I am not sure if this is the same setup as the original problem, but it is similar, and maybe it is of use for you to know that it works.

szczyo
[Message sent by forum member 'szczyp']

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