Register / Login
Win a copy of
Functional Reactive Programming
this week in the
EJB and other Java EE Technologies
posted 4 years ago
We have a JAR file that contains DAO and DAOImpl classes. We have one
abstract BaseDAOImpl class that creates EntityManager instance
variables via @PersistenceContext.
When this JAR file gets packaged up in a WAR file with jersey services
and other code all is fine.
When this JAR file gets packaged into an EAR with an
jar file the
EntityManagers are always null.
I would imagine this isn't a completely unusual use case. Has anyone
run into / overcome this sort of thing? We happen to be using glassfish.
When the EAR is deployed we see hibernate find all of the persistence
units its just at runtime we can't get the EMs built.
Putting properties files in the root of the .ear?
Deploying My project in Jboss server
Global JNDI access with EJB 3.1 and JBoss 6
JPA Newbie Question