<tx:advice transaction-manager="transactionManager">
<tx:attributes>
<tx:method propagation="REQUIRED" rollback-for="Throwable, Exception, RuntimeException" />
<tx:method propagation="NOT_SUPPORTED" />
<tx:method propagation="NOT_SUPPORTED" />
<tx:method propagation="NOT_SUPPORTED" />
<tx:method read-only="true" propagation="SUPPORTS" />
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut expression="execution(* com.jl.net..service.*.*(..))" />
<aop:advisor pointcut-ref="pointCut" advice-ref="txAdvice" />
<aop:aspect ref="serviceInterceptor" order="2">
<aop:around method="doAround" pointcut-ref="pointCut" />
</aop:aspect>
</aop:config>
5、 jta.properties (路径跟log4j.properties一致就好)
这个文件不配置系统也能启动,因为有默认配置,个人建议配置一下。详细配置
com.atomikos.icatch.console_file_name = xam.out
com.atomikos.icatch.log_base_name = xamlog.log
com.atomikos.icatch.service = com.atomikos.icatch.standalone.UserTransactionServiceFactory
基于 Spring 设计并实现 RESTful Web Services
Spring-3.2.4 + Quartz-2.2.0集成实例