users@glassfish.java.net

Re: glassfish-embedded-shell.jar 3.0.1 deployment issue

From: <glassfish_at_javadesktop.org>
Date: Tue, 22 Jun 2010 10:51:34 PDT

I'm not trying to convince you to drop GlassFish, but your testing environment need to take into consideration Java EE rules.

EntityManager is not published to the global JNDI, so its visibility is limited to the Java EE components and persistent unit scoping rules. E.g. you can look it up from an EJB (if this PU is scoped to be visible to this EJB) but not a simple Java SE client or a different application deployed to the same server.

Regards,
-marina
[Message sent by forum member 'mvatkina']

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