某一个比较大的事务
频繁出现如下异常:JTA transaction unexpectedly rolled back (maybe due to a timeout); nested exception is javax.transaction.RollbackException;
分析了一下,成功的最大时间是295左右那样,也就是5分钟
我在事务里面加了如下代码
<tx:advice id="txAdviceBkdRep" transaction-manager="txManager">
<tx:attributes>
<tx:method name="*" timeout="1200" rollback-for="Throwable" propagation="REQUIRED" />
</tx:attributes>
</tx:advice>
1200秒,明显没有起作用,请问原因是什么呢??