关于spring事务提交的随笔
2014-10-20 10:58
393 查看
<bean id="iChApplyService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager" ref="transactionManagerCheck2"/>
<property name="target" ref="iChApplyServiceTarget"/>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
-Exception选项 如果在iChApplyServiceTarget的方法内对抛出的异常进行了处理,则-Exception会导致事务回滚
+Exception则会提交,不配置也会提交
而如果在iChApplyServiceTarget的调用方进行处理,则不配置也会回滚.
原理不明,望指导
<property name="transactionManager" ref="transactionManagerCheck2"/>
<property name="target" ref="iChApplyServiceTarget"/>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
-Exception选项 如果在iChApplyServiceTarget的方法内对抛出的异常进行了处理,则-Exception会导致事务回滚
+Exception则会提交,不配置也会提交
而如果在iChApplyServiceTarget的调用方进行处理,则不配置也会回滚.
原理不明,望指导
相关文章推荐
- 关于SAP的事务提交和回滚(LUW)
- 关于SAP的事务提交和回滚(LUW)
- 软件测试——关于提交bug随笔
- 关于jdbc内嵌事务(结合spring的传播属性)
- spring事务问题:没有提交
- 一些关于hibernate 与 spring 事务管理的问题
- 关于spring管理下的事务不起作用的问题。
- 关于用spring的JtaTransactionManager,配置分布式事务
- spring 事务管理 随笔
- 关于分布式事务、两阶段提交、一阶段提交、Best Efforts 1PC模式和事务补偿机制的研究
- 关于spring事务的一组文章
- 关于spring声明式事务管理异常处理的测试和小结
- SSH整合-关于Spring中applicationContext.xml文件对于事务的一些配置
- 关于Spring.net+NHibernate的事务控制
- 关于SAP的事务提交和回滚(LUW)
- 关于spring 的事务管理
- 写给自己:关于Spring的事务传播属性
- 关于Spring事务代理类型转换问题($ProxyXX cannot be cast to 类型)(二)
- 关于分布式事务、两阶段提交、一阶段提交、Best Efforts 1PC模式和事务补偿机制的研究