openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Riou" <>
Subject Setting a datasource and a transaction manager
Date Wed, 13 Dec 2006 21:13:59 GMT
Hi JPA guys,

In the Apache Ode podling we're currently working on replacing Hibernate
with OpenJPA. It's been working great so far but I have a couple of
questions. I'd need to set the transaction manager and the datasource
manually using the OpenJPA API and I've been unable to find the right class
and the right setters so far. Is there an easy way to do that?

The use case is we need to run both in containers with their own tx manager
(like Geronimo) and lightweight containers (like Tomcat). In the lightweight
case we instantiate our own transaction manager (JOTM) and our own
datasource (Minerva) and we don't need any JNDI (unnecessary painful).

I've been looking around and haven't found an easy way. I could have a look
at the sources but I figured that asking you directly would be quicker.



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