RE: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-28 Thread Pinaki Poddar
EntityManagerFactory emf = OpenJPAPersistence.createEntityManagerFactory(EMF_JNDI_LOCATION, (Context) null); 1. Instead of passing null context, if the same Context instance is passed on every invocation -- does the behaviour change? 2. If the emf and its underlying brokerfactory bf from two

Re: RE: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-27 Thread Hans Prueller
-Nachricht Datum: Mon, 26 Feb 2007 23:10:42 -0800 Von: Patrick Linskey [EMAIL PROTECTED] An: open-jpa-dev@incubator.apache.org CC: Betreff: RE: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans? It should be going through the following

RE: RE: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-27 Thread Patrick Linskey
is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans? strange. When I look on the code it seems that it definitely could NOT be the case that the EMF is not correctly bound to the JNDI tree as the method OpenJPAEntityManagerFactory

RE: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-27 Thread Pinaki Poddar
time - was: Howto integrate JPA within EJB2.1 session beans? It should be going through the following code: public static OpenJPAEntityManagerFactory createEntityManagerFactory (String jndiLocation, Context context) { if (jndiLocation == null) throw new

RE: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-27 Thread Pinaki Poddar
-dev@incubator.apache.org Subject: Re: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans? We had a similar issue with the JDO Reference Implementation. What we ended up with was implementing the naming.Referenceable interface and writing our own

Re: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-27 Thread Craig L Russell
in the map. Craig Pinaki Poddar BEA Systems 415.402.7317 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 3:32 PM To: open-jpa-dev@incubator.apache.org Subject: Re: EMF JNDI lookup is starting openJPA every time - was: Howto

RE: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-26 Thread Patrick Linskey
It should be going through the following code: public static OpenJPAEntityManagerFactory createEntityManagerFactory (String jndiLocation, Context context) { if (jndiLocation == null) throw new NullPointerException(jndiLocation == null); try {