Return-Path: X-Original-To: apmail-incubator-deltaspike-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 126B1F527 for ; Mon, 25 Mar 2013 00:58:20 +0000 (UTC) Received: (qmail 68267 invoked by uid 500); 25 Mar 2013 00:58:20 -0000 Delivered-To: apmail-incubator-deltaspike-commits-archive@incubator.apache.org Received: (qmail 68241 invoked by uid 500); 25 Mar 2013 00:58:20 -0000 Mailing-List: contact deltaspike-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-commits@incubator.apache.org Received: (qmail 68232 invoked by uid 99); 25 Mar 2013 00:58:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 00:58:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Mar 2013 00:58:15 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 518C3238899C; Mon, 25 Mar 2013 00:57:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1460498 - /incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext Date: Mon, 25 Mar 2013 00:57:55 -0000 To: deltaspike-commits@incubator.apache.org From: gpetracek@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130325005755.518C3238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gpetracek Date: Mon Mar 25 00:57:54 2013 New Revision: 1460498 URL: http://svn.apache.org/r1460498 Log: description of the jta support Modified: incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext Modified: incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext URL: http://svn.apache.org/viewvc/incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext?rev=1460498&r1=1460497&r2=1460498&view=diff ============================================================================== --- incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext (original) +++ incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext Mon Mar 25 00:57:54 2013 @@ -289,4 +289,16 @@ Producer for the default EntityManager w entityManager.close(); } } - } \ No newline at end of file + } + +# JTA Support + +Per default the transaction-type used by `@Transactional`is 'RESOURCE_LOCAL'. If you configure `transaction-type="JTA"`in the persistence.xml, you have to enable an alternative `TransactionStrategy` in the beans.xml which is called `org.apache.deltaspike.jpa.impl.transaction.BeanManagedUserTransactionStrategy`. + + + + org.apache.deltaspike.jpa.impl.transaction.BeanManagedUserTransactionStrategy + + + +If you have multiple persistence-units and you have to use both transaction-types or the settings for development have to be different than the production settings, you can use `org.apache.deltaspike.jpa.impl.transaction.EnvironmentAwareTransactionStrategy` instead. \ No newline at end of file