users@glassfish.java.net

reference entity manager from resource adapter

From: <glassfish_at_javadesktop.org>
Date: Sun, 23 Nov 2008 09:05:59 PST

Hi,
I'm trying to reference an entity manager from a resource adapter class using jndi.
I know that from the ejb layer it's easy to bind the entity manager to a jndi name, and make it availble to my code, using the <persistence-context-ref> tag in the ejb-jar.xml file.

How can I bind entity manager to a jndi name, to be used in the resource adapter classes?

Thanks, Edo.
[Message sent by forum member 'e3133d3' (e3133d3)]

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