From open-jpa-dev-return-2296-apmail-incubator-open-jpa-dev-archive=incubator.apache.org@incubator.apache.org Wed Feb 21 07:10:27 2007 Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 90317 invoked from network); 21 Feb 2007 07:10:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2007 07:10:27 -0000 Received: (qmail 99071 invoked by uid 500); 21 Feb 2007 07:10:35 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 99037 invoked by uid 500); 21 Feb 2007 07:10:34 -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 99027 invoked by uid 99); 21 Feb 2007 07:10:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Feb 2007 23:10:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Feb 2007 23:10:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 875897141A2 for ; Tue, 20 Feb 2007 23:10:05 -0800 (PST) Message-ID: <7849734.1172041805524.JavaMail.jira@brutus> Date: Tue, 20 Feb 2007 23:10:05 -0800 (PST) From: "Patrick Linskey (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Created: (OPENJPA-159) Make ManagedRuntime amenable to more transaction execution strategies MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Make ManagedRuntime amenable to more transaction execution strategies --------------------------------------------------------------------- Key: OPENJPA-159 URL: https://issues.apache.org/jira/browse/OPENJPA-159 Project: OpenJPA Issue Type: Improvement Components: kernel, jdbc Reporter: Patrick Linskey OpenJPA occasionally needs to perform work in a non-business transaction (see AbstractJDBCSeq.java). In a transactional environment, one way that this is achieved is by suspending the current JTA transaction, starting a new one, doing the work, cleaning up the new tx, and resuming the original one. Some environments do not allow direct transaction control, but mechanisms such as stateless session beans can often be used to kick off atomic operations that should execute in a separate transaction. We could easily add ManagedRuntime.executeInNewTransaction(Runnable) that captured this slightly-coarser-grained transaction control. The default implementation could simply do suspend(), begin(), invoke Runnable.run(), commit()/rollback(), resume(). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.