I have the following declaration in my class:

@PersistenceContext(unitName = "CallScheduler")
EntityManagerFactory emf;

If I compile the code in NetBeans/Glassfish, emf is instantiated.

If I compile the code in Eclipse/Tomcat, emf is *not* instantiated - no
errors, other than a NullPointerException when I try to use it.

Any ideas?

Eric


-- 
View this message in context: 
http://www.nabble.com/%40PersistenceContext-injection-works-on-other-app-server%2C-not-Tomcat...-tp18350591p18350591.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to