openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@bea.com>
Subject RE: howto/pattern for working with three databases outside an EJB3 container
Date Fri, 16 Feb 2007 19:02:01 GMT
The problem is that the create* methods actually return new factories,
whereas the get* methods use OpenJPA's broker pooling.

-Patrick

-- 
Patrick Linskey
BEA Systems, Inc. 

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it. 

> -----Original Message-----
> From: Don Brady [mailto:dbrady@pobox.com] 
> Sent: Friday, February 16, 2007 10:51 AM
> To: open-jpa-dev@incubator.apache.org
> Subject: Re: howto/pattern for working with three databases 
> outside an EJB3 container
> 
> Patrick,
> 
> 
> Can the following not be used?
> 
> createEntityManagerFactory(String name, String resource)
> 
> Returns a new OpenJPAEntityManagerFactory specified by name in an XML 
> configuration file at the resource location resource.
> 
> Don
> 
> 
> 
> Patrick Linskey wrote:
> > Hmm. Theoretically, this is what the
> > OpenJPAPersistence.getEntityManagerFactory() methods are there for.
> > However, looking at them, there is no way to specify your 
> persistence
> > unit when using those methods. We should add those methods to
> > OpenJPAPersistence.
> > 
> > Am I overlooking something in the implementation of those methods,
> > anyone?
> > 
> > -Patrick
> > 
> 
> 

Mime
View raw message