Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 37971 invoked from network); 13 Dec 2006 21:14:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2006 21:14:24 -0000 Received: (qmail 79680 invoked by uid 500); 13 Dec 2006 21:14:31 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 79653 invoked by uid 500); 13 Dec 2006 21:14:31 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 79644 invoked by uid 99); 13 Dec 2006 21:14:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 13:14:31 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of matthieu.riou@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Dec 2006 13:14:21 -0800 Received: by nf-out-0910.google.com with SMTP id a4so664942nfc for ; Wed, 13 Dec 2006 13:14:00 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=if5DD3IH79hv3eK/WzWm32Ltt0gE66sPXuYmhiRRsdqVJTDeRXCEf1laFYh1qID6OLSACFc7jsJxLrHvPoMe9/YK1td9fv99KMRZTgINhzkftijfAKr/4+Q5BhLpGmPEsNcdkKwD/tnVBSGwC3EGfjuyGyCI1XjpaEMxyIilXus= Received: by 10.49.19.5 with SMTP id w5mr68283nfi.1166044439226; Wed, 13 Dec 2006 13:13:59 -0800 (PST) Received: by 10.49.60.20 with HTTP; Wed, 13 Dec 2006 13:13:59 -0800 (PST) Message-ID: Date: Wed, 13 Dec 2006 13:13:59 -0800 From: "Matthieu Riou" Reply-To: matthieu.riou@gmail.com To: open-jpa-dev@incubator.apache.org Subject: Setting a datasource and a transaction manager MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22182_7093704.1166044439191" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_22182_7093704.1166044439191 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. Thanks! Matthieu ------=_Part_22182_7093704.1166044439191--