
enserver.transactions-gae.29.source-code.transaction-context.xml Maven / Gradle / Ivy
The newest version!
<?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:mvc="http://www.springframework.org/schema/mvc" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"> <!-- Transaction management Include this file if you like to add GAE transaction to all create, delete and update methods. Read operations will not be made in a transaction. In your application, you need to define the aop:config with aspect and pointcuts, e.g. <aop:config> <aop:aspect id="concurrentOperationAspect" ref="concurrentOperationExecutor"> <aop:pointcut id="transactionMethods" expression="within(com.wadpam.rnr.service.RnrService) and (execution(* add*(..)) or execution(* delete*(..)) or execution(* update*(..))) and @annotation(com.wadpam.open.transaction.Idempotent)"/> <aop:around pointcut-ref="transactionMethods" method="doConcurrentOperation" /> </aop:aspect> </aop:config> --> <bean id="concurrentOperationExecutor" class="com.wadpam.open.transaction.ConcurrentOperationExecutor"> <property name="order" value="10"/> <property name="maxRetries" value="3"/> </bean> <tx:annotation-driven transaction-manager="transactionManager" order="200"/> <bean id="transactionManager" class="com.wadpam.open.transaction.GaeTransactionManager"> <property name="transactionSynchronization" value="2" /> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy