users@glassfish.java.net

Re: EntityManager Lookup via JNDI in Glassfish

From: Sahoo <Sahoo_at_Sun.COM>
Date: Fri, 20 Mar 2009 00:35:24 +0530

No, EntityManager can't be published in global JNDI. It is available in
component naming context only. We are proposing to make
EntityManagerFactory to be available in global naming environment in
GFv3, but it's in proposal stage only.

Sahoo

glassfish_at_javadesktop.org wrote:
> Thanks, sahoo - @PersistenceContext(name="persistence/em") in the calling EJB worked.
>
> Is there a way to globally publish an EntityManager to JNDI? In a configuration file, perhaps?
> [Message sent by forum member 'euqaz' (euqaz)]
>
> http://forums.java.net/jive/thread.jspa?messageID=338001
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>