]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.server/src/main/resources/org/argeo/slc/server/spring/transaction.xml
First consistent version with JMS
[gpl/argeo-slc.git] / runtime / org.argeo.slc.server / src / main / resources / org / argeo / slc / server / spring / transaction.xml
index 43cabb8eac3c36fdfbfe6a99decc8edbf3414394..7e6d0ad5c17b2e00b1762d1ddb786430ad609449 100644 (file)
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-       xmlns:aop="http://www.springframework.org/schema/aop"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
        xmlns:tx="http://www.springframework.org/schema/tx"
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        <aop:config>
                <aop:pointcut id="daoProcessMethods"
                        expression="execution(* org.argeo.slc.dao.process.*.*(..))" />
-               <aop:advisor advice-ref="daoAdvice"
-                       pointcut-ref="daoProcessMethods" />
+               <aop:advisor advice-ref="daoAdvice" pointcut-ref="daoProcessMethods" />
+       </aop:config>
+
+       <aop:config>
+               <aop:pointcut id="daoRuntimeMethods"
+                       expression="execution(* org.argeo.slc.dao.runtime.*.*(..))" />
+               <aop:advisor advice-ref="daoAdvice" pointcut-ref="daoRuntimeMethods" />
        </aop:config>
 
        <aop:config>
                <aop:pointcut id="daoTestMethods"
                        expression="execution(* org.argeo.slc.dao.test.*.*(..))" />
-               <aop:advisor advice-ref="daoAdvice"
-                       pointcut-ref="daoTestMethods" />
+               <aop:advisor advice-ref="daoAdvice" pointcut-ref="daoTestMethods" />
        </aop:config>
 
        <aop:config>
                <aop:pointcut id="daoTestTreeMethods"
                        expression="execution(* org.argeo.slc.dao.test.tree.*.*(..))" />
-               <aop:advisor advice-ref="daoAdvice"
-                       pointcut-ref="daoTestTreeMethods" />
+               <aop:advisor advice-ref="daoAdvice" pointcut-ref="daoTestTreeMethods" />
        </aop:config>
 
-       <tx:advice id="daoAdvice"
-               transaction-manager="transactionManager">
+       <tx:advice id="daoAdvice" transaction-manager="transactionManager">
                <tx:attributes>
-                       <tx:method name="get*" propagation="REQUIRED"
-                               read-only="true" />
-                       <tx:method name="list*" propagation="REQUIRED"
-                               read-only="true" />
+                       <tx:method name="get*" propagation="REQUIRED" read-only="true" />
+                       <tx:method name="list*" propagation="REQUIRED" read-only="true" />
                        <tx:method name="*" propagation="REQUIRED" />
                </tx:attributes>
        </tx:advice>
+<!-- 
+       <aop:config>
+               <aop:pointcut id="pointcut.services.allMethods"
+                       expression="execution(* org.argeo.slc.services.*.*.*(..))" />
+               <aop:advisor advice-ref="advice.allMethodsRequired"
+                       pointcut-ref="pointcut.services.allMethods" />
+       </aop:config>
 
+       <tx:advice id="advice.allMethodsRequired"
+               transaction-manager="transactionManager">
+               <tx:attributes>
+                       <tx:method name="*" propagation="REQUIRED" />
+               </tx:attributes>
+       </tx:advice>
+ -->
 </beans>
\ No newline at end of file