You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2013/03/25 01:57:55 UTC
svn commit: r1460498 -
/incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext
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`.
+
+ <beans>
+ <alternatives>
+ <class>org.apache.deltaspike.jpa.impl.transaction.BeanManagedUserTransactionStrategy</class>
+ </alternatives>
+ </beans>
+
+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