-
Bug
-
Resolution: Done
-
Major
-
EJB 3.0 RC5 - PFD
-
None
-
None
This assertion fails:
@Stateless
@PersistenceUnit(name = "emf/caveatemptor1", unitName = "caveatemptorDatabase")
public class InfrastructureBean implements Infrastructure {
@Resource
SessionContext ctx;
public void lookupEntityManagerFactoryInJNDI()
{ EntityManagerFactory emf = (EntityManagerFactory)ctx.lookup("emf/caveatemptor1"); assert emf != null; }}
The trace log is unusable, it contains no information about ENC population.
Regular field/setter injection of a PU/EMF works, and it also correctly populates the ENC.