openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: [jira] Created: (OPENJPA-1653) Why getting null for EntityManagerFactory and EntityManager
Date Wed, 05 May 2010 22:49:14 GMT

Injection of a persistence unit is often a container's (weblogic, in this
case) responsibility. 
Normally, the containers do not/can not inject persistence unit/context in a
entity. Session Bean/Servlet etc are normally the injection target. Depends
of specific capability of the containers.

So you should consult your container provider if the assumed injected unit
is null.

Please wait a while before opening a JIRA. A JIRA is not the right
instrument for a usage query -- let some forum exchanges transpire before we
decide that the discussion merits as a OpenJPA bug.


-----
Pinaki 
-- 
View this message in context: http://openjpa.208410.n2.nabble.com/jira-Created-OPENJPA-1653-Why-getting-null-for-EntityManagerFactory-and-EntityManager-tp5010640p5011515.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.

Mime
View raw message