deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1464249 - /incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext
Date Thu, 04 Apr 2013 01:23:36 GMT
Author: clerum
Date: Thu Apr  4 01:23:36 2013
New Revision: 1464249

CMS commit to deltaspike by clerum


Modified: incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext
--- incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext (original)
+++ incubator/deltaspike/site/trunk/content/deltaspike/jpa.mdtext Thu Apr  4 01:23:36 2013
@@ -25,6 +25,15 @@ Notice:    Licensed to the Apache Softwa
 This annotation is an alternative to transactional EJBs which allows to execute a method
within a transaction.
 Before it's possible to start using the annotation, it's required to implement a CDI producer
for an `EntityManager` and it's needed to inject the `EntityManager` in the bean which uses
`@Transactional`. As shown later on it's also possible to use multiple qualifiers for using
different `EntityManager`s.
+If you are using features described by this page and the CDI container you are using is Weld
(or OpenWebBeans in BDA mode), you have to enable the security interceptor in your beans.xml
+    <beans>
+        <interceptors>
+            <class>org.apache.deltaspike.jpa.impl.transaction.TransactionalInterceptor</class>
+        </interceptors>
+    </beans>
 The following example shows a simple producer for an `EntityManager` and the corresponding
 Producing it as request scoped bean means that the dispose method will be called on finishing
the request.
 As an alternative it's possible to use a special scope called `@TransactionScoped` provided
by the same DeltaSpike module.

View raw message