Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Joined: May 21, 2012
May 21, 2012 07:36:20
We have a JAR file that contains DAO and DAOImpl classes. We have one
abstract BaseDAOImpl class that creates
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.
It is sorta covered in the
JavaRanch Style Guide
Putting properties files in the root of the .ear?
Global JNDI access with EJB 3.1 and JBoss 6
Deploying My project in Jboss server
JPA Newbie Question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013