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
-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
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
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
-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
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
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 {