On Mar 18, 2009, at 8:40 AM, Olivier THIERRY wrote:
Hi,
I try to configure a Seam-managed persistence context with Open EJB
3.0.
To achieve this, I need to get entity manager factory using its JNDI
name.
For example, for JBoss, it is something like this :
<property name="jboss.entity.manager.factory.jndi.name"
value="java:/EntityManagerFactories/bookingData"/>
But I can't find the equivalent for Open EJB. So what is the JNDI name
for OpenEJB entity manager factory ?
In the current releases there's no global JNDI name for
EntityManagerFactory instances. In the trunk version (3.1.1) there is
work on that might help.
In the meantime, do you know if Seam can lookup from an EJB's or
Servlet's java:comp namespace? If that works, you could add an
@PersistenceUnit ref (or equivalent xml) somewhere.
-David