<tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="save*" propagation="REQUIRED" rollback-for="Exception" /> <tx:method name="add*" propagation="REQUIRED" rollback-for="Exception" /> <tx:method name="del*" propagation="REQUIRED" rollback-for="Exception" /> <tx:method name="insert*" propagation="REQUIRED" rollback-for="Exception" /> <tx:method name="update*" propagation="REQUIRED" rollback-for="Exception" /> </tx:attributes> </tx:advice> <aop:config> <aop:advisor advice-ref="txAdvice" pointcut="execution(* com.ibm.common.generic.service..*.*(..))" /> <aop:advisor advice-ref="txAdvice" pointcut="execution(* com.ibm.bas.mes.config.service..*.*(..))" /> <aop:advisor advice-ref="txAdvice" pointcut="execution(* com.ibm.bas.mes.message.service..*.*(..))" /> <aop:advisor advice-ref="txAdvice" pointcut="execution(* com.ibm.bas.rse.insm.service..*.*(..))" /> </aop:config>
时间: 2024-11-05 18:49:56