openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Riou" <>
Subject Re: Configuration: either / or ?
Date Thu, 04 Jan 2007 00:38:07 GMT
Sorry about that, I've been persistently reading your sentence the other way
around: use createEntityManager instead of createEntityManagerFactory. I've
finally got it in the right order, I guess I should get my eyes checked or
something. Thanks for insisting though :)

Now that I got it the right way, it seems to work as the I get the right
value for ConnectionFactory in the log after setting
javax.persistence.nonJtaDataSource as you recommended:


I'm hitting another problem but it comes from my code. I'll let you know if
I can get everything working this way.

Thanks a lot for your help!

On 1/3/07, Abe White <> wrote:
> >        EntityManagerFactory emf =
> > Persistence.createEntityManagerFactory
> > ("ode-dao");
> >        EntityManager em = emf.createEntityManager(propMap);
> Once again, you should be passing your props to
> createEntityManagerFactory, not createEntityManager.  As I said, use
> the no-arg version of createEntityManager:
> EntityManagerFactory emf = Persistence.createEntityManagerFactory
> ("ode-dao", propMap);
> EntityManager em = emf.createEntityManager();
> _______________________________________________________________________
> 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.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message