users@glassfish.java.net

Re: Call EntityManager in a JavaSE Environment (over JDNI)

From: <glassfish_at_javadesktop.org>
Date: Mon, 01 Oct 2007 06:33:30 PDT

Jndi-lookup of Entity Managers is only available with Container Managed Entity Managers which are not available in a Java SE environment. You will need to manage the Entity Manager Factories within your application and acquire them through PersistenceProvider.createEntityManagerFactory().
--Gordon
[Message sent by forum member 'gyorke' (gyorke)]

http://forums.java.net/jive/thread.jspa?messageID=237810