Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 88057 invoked from network); 20 Oct 2006 16:16:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Oct 2006 16:16:39 -0000 Received: (qmail 59409 invoked by uid 500); 20 Oct 2006 16:16:38 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 59387 invoked by uid 500); 20 Oct 2006 16:16:38 -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 59364 invoked by uid 99); 20 Oct 2006 16:16:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 09:16:37 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Oct 2006 09:16:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CE77671431C for ; Fri, 20 Oct 2006 09:15:38 -0700 (PDT) Message-ID: <18838163.1161360938843.JavaMail.jira@brutus> Date: Fri, 20 Oct 2006 09:15:38 -0700 (PDT) From: "Kevin Sutter (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Commented: (OPENJPA-61) Missing usage of TransactionSynchronizationRegistry In-Reply-To: <8994031.1159450191330.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/OPENJPA-61?page=comments#action_12443882 ] Kevin Sutter commented on OPENJPA-61: ------------------------------------- Question: From a pure JPA perspective, you would need WebSphere v6.1 Application Server in order to use OpenJPA within a WebSphere container (at a minimum). This is due to the requirement of Java SE 5, which was first available in WAS v6.1. So, if the use of the proper ExtendedJTATransaction interface was limited to JPA, then we could remove the other three internal API references. But, since this OpenJPA kernel is also used by Kodo's JDO support, what levels of the WebSphere runtime need to be supported? The ExtendedJTATransaction interface was introduced in WAS v5.0.2. Since WAS v4.x is out of service, do we need to leave the three internal API references in the code base? Or, can these be removed once we get the ExtendedJTATransaction processing committed? > Missing usage of TransactionSynchronizationRegistry > --------------------------------------------------- > > Key: OPENJPA-61 > URL: http://issues.apache.org/jira/browse/OPENJPA-61 > Project: OpenJPA > Issue Type: Bug > Components: jdbc > Reporter: Kevin Sutter > Assigned To: Kevin Sutter > > A discussion on the dev mailing list indicates that OpenJPA currently does not utilize the TransactionSynchronizationRegistry. Although OpenJPA does provide other means of finding and accessing the various TransactionManagers, we should update OpenJPA to use the standard interfaces. Following are the two notes on this subject... > ======================================================================================== > o David Jencks to open-jpa-dev More options Sep 27 (19 hours ago) > I'm trying to get openjpa running in geronimo and wonder how openjpa > locates the TransactionSynchronizationRegistry. Grep'ing for > TransactionSynchronizationRegistry I don't see it used anywhere in > the code base. What am I missing? > thanks > david jencks > ======================================================================================== > o Marc Prud'hommeaux to open-jpa-dev More options Sep 27 (19 hours ago) > David- > We don't use TransactionSynchronizationRegistry (not yet, at least). > Instead, we manually locate the TransactionManager via appserver- > specific heuristics defined in openjpa-kernel/src/main/java/org/ > apache/openjpa/ee/AutomaticManagedRuntime.java > If the Geronimo TransactionManager is accessible from JNDI or some > method invocation, you can just add it into AutomaticManagedRuntime > as a default (you can test it out by specifying the > "openjpa.ManagedRuntime" property to "jndi > (TransactionManagerName=java:/GeronimoJNDINameForTransactionManager)". > We may add support for integration via > TransactionSynchronizationRegistry in the future, but the fact that > it doesn't provide support for accessing the current Transaction > would mean that we would need to rework some OpenJPA internals. > ======================================================================================== -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira