Re: Programmatical EntityManagerFactory init

2007-04-06 Thread Michael Dick
Hi Erwan, What do you have in persistence.xml? It should contain something like this : persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.0 persistence-unit name=teamplay_test . . . /persistence-unit

RE: Programmatical EntityManagerFactory init

2007-04-06 Thread Patrick Linskey
Note : I'm using a persistence.xml for single persitence unit creation, and this test works fine. I've had a dive into the source code, and found the provider is lookuped and found by the glassfish persistence implementation class. The exception is raised on the open jpa side, and I

Re: Programmatical EntityManagerFactory init

2007-04-06 Thread Erwan Le Goulven
Thank you for your time Patrik, Actually the persistence.xml used in the META-INF jar in the CP points to another persistence unit name. The thing is -and I may be mistaking about this practice- I want to programmatically my own persistence units, based on different name, at run time, and I

RE: Programmatical EntityManagerFactory init

2007-04-06 Thread Patrick Linskey
: Friday, April 06, 2007 9:50 AM To: open-jpa-dev@incubator.apache.org Subject: Re: Programmatical EntityManagerFactory init Thank you for your time Patrik, Actually the persistence.xml used in the META-INF jar in the CP points to another persistence unit name. The thing is -and I may

RE: Programmatical EntityManagerFactory init

2007-04-06 Thread Patrick Linskey
, 2007 10:08 AM To: open-jpa-dev@incubator.apache.org Subject: RE: Programmatical EntityManagerFactory init Could you (or anyone else) confirm this last point? Your are correct -- when using the Persistence class for bootstrapping, you must provide a name of a persistence unit defined

Re: Programmatical EntityManagerFactory init

2007-04-06 Thread Erwan Le Goulven
, please immediately return this by email and then delete it. -Original Message- From: Patrick Linskey Sent: Friday, April 06, 2007 10:08 AM To: open-jpa-dev@incubator.apache.org Subject: RE: Programmatical EntityManagerFactory init Could you (or anyone else) confirm this last point