]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - server/org.argeo.slc.siteserver/bundles/org.argeo.slc.server.services/META-INF/spring/services.xml
Introduce JMS based notifications
[gpl/argeo-slc.git] / server / org.argeo.slc.siteserver / bundles / org.argeo.slc.server.services / META-INF / spring / services.xml
index e96f1e0dfb37d5012d6ada8d74cc8b51ddfee3be..fe2aa9173b842b551538d15e80558f6ead828ede 100644 (file)
@@ -6,7 +6,7 @@
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
-       
+
        <!-- Services -->
        <bean id="testManagerService" class="org.argeo.slc.services.impl.test.TestManagerServiceImpl">
                <constructor-arg ref="testResultDao" />
        <bean id="agentService" class="org.argeo.slc.services.impl.runtime.AgentServiceImpl">
                <constructor-arg ref="slcAgentDescriptorDao" />
        </bean>
+
+       <!-- Services transactions -->
+       <aop:config>
+               <aop:pointcut id="serviceMethods"
+                       expression="execution(* org.argeo.slc.services.test.TestManagerService.*(..))" />
+               <aop:advisor advice-ref="serviceAdvice" pointcut-ref="serviceMethods" />
+       </aop:config>
+
+       <tx:advice id="serviceAdvice" transaction-manager="transactionManager">
+               <tx:attributes>
+                       <tx:method name="*" propagation="REQUIRED" />
+               </tx:attributes>
+       </tx:advice>
+
 </beans>
\ No newline at end of file