From open-jpa-dev-return-278-apmail-incubator-open-jpa-dev-archive=incubator.apache.org@incubator.apache.org Thu Aug 10 01:24:05 2006 Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 16781 invoked from network); 10 Aug 2006 01:24:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2006 01:24:05 -0000 Received: (qmail 35890 invoked by uid 500); 10 Aug 2006 01:24:05 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 35825 invoked by uid 500); 10 Aug 2006 01:24:05 -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 35816 invoked by uid 99); 10 Aug 2006 01:24:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 18:24:05 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of plinskey@bea.com designates 63.96.176.25 as permitted sender) Received: from [63.96.176.25] (HELO uslcmh01.bea.com) (63.96.176.25) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Aug 2006 18:24:03 -0700 Received: from ussjfe01.amer.bea.com (ussjfe01b.bea.com [172.16.120.57]) by uslcmh01.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id k7A1NHJV024624 for ; Wed, 9 Aug 2006 21:23:40 -0400 Received: from repbex02.amer.bea.com ([10.160.26.99]) by ussjfe01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 9 Aug 2006 18:22:31 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: JCA Resource Adapter? Date: Wed, 9 Aug 2006 18:22:29 -0700 Message-ID: <7D856CDFE035FF45A0420ACBD71BDD6301B1B559@repbex02.amer.bea.com> In-Reply-To: <89c0c52c0608091442ja155931ya42cd5df33e4c418@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JCA Resource Adapter? Thread-Index: Aca7/Movqr9KlOY/SGCNM+cs+SVzpAAHVSSw From: "Patrick Linskey" To: X-OriginalArrivalTime: 10 Aug 2006 01:22:31.0414 (UTC) FILETIME=[7379D160:01C6BC1B] X-PMX-Version: 4.7.0.111621, Antispam-Engine: 2.0.2.0, Antispam-Data: 2006.8.8.91433 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Moving forward, JCA is unlikely to be the best way to integrate OpenJPA into a container.=20 JCA does two things: it provides a framework for integrating transactional resources into a JTA environment, and it provides lifecycle / configuration / bootstrapping hooks. Sadly, it also suffers from some unfortunate weaknesses in how transaction semantics are defined that basically render it unusable for things like OpenJPA -- OpenJPA needs to be notified at certain phases in the lifecycle of a transaction, and those lifecycle points are not available in JCA. In the EJB3 spec, we defined a contract between the JPA impl and the "container" (EJB or otherwise), and we convinced the JTA team to add the TransactionSynchronizationRegistry interface. So, JTA + the JPA/container contract are the best way to use OpenJPA in a Java EE 5 environment. For J2EE 1.4 apps, JCA does provide some theoretical utility for hooking into an appserver's standard JCA configuration mechanisms, and for getting registered in JNDI in a somewhat-standard way. In any event, the JCA impl code is not currently part of the OpenJPA codebase; that's a bug in the docs. I guess that we need to decide what the story should be for deploying OpenJPA into a pre-Java EE 5 appserver. If we decide that JCA is that way, then maybe the best approach is for BEA to contribute the existing JCA wrappers around OpenJPA. Thoughts? -Patrick --=20 Patrick Linskey BEA Systems, Inc.=20=20 > -----Original Message----- > From: Kevin Sutter [mailto:kwsutter@gmail.com]=20 > Sent: Wednesday, August 09, 2006 2:43 PM > To: open-jpa-dev@incubator.apache.org > Subject: JCA Resource Adapter? >=20 > According to Section 3 (J2EE Tutorials, specifically 3.2 J2EE=20 > Installation > Types), the recommended approach to using OpenJPA in a=20 > managed environment > is via the JCA rar file: >=20 > JCA: OpenJPA implements the JCA 1.0 spec, and the > openjpa-persistence.rarfile that comes in the > jca/persistence directory of the distribution can be=20 > installed as any other > JCA connection resource. This is the preferred way to=20 > integrate OpenJPA into > a pre-J2EE 5 environment. It allows for simple installation (usually > involving uploading or copying openjpa-persistence.rar into=20 > the application > server's deployment directory), and guided configuration on=20 > many appservers. >=20 > Is this supposed to be part of the OpenJPA deliverable? I do=20 > not seem to > building the .rar file, nor can I find any reference to the=20 > jca/persistence > directory that is mentioned above. Should I open a JIRA bug for this? >=20 > Thanks, > Kevin >=20 _______________________________________________________________________ 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.