openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Brady <>
Subject Re: howto/pattern for working with three databases outside an EJB3 container
Date Fri, 16 Feb 2007 18:50:40 GMT

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.


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

View raw message