RE: howto/pattern for working with three databases outside an EJB3 container

2007-02-16 Thread Patrick Linskey
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

Re: howto/pattern for working with three databases outside an EJB3 container

2007-02-16 Thread Don Brady
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

RE: howto/pattern for working with three databases outside an EJB3 container

2007-02-16 Thread Patrick Linskey
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