使用 WebSphere 扩展来定义事务超时(以秒计)

<trans-timeout-seconds> 元素指定了企业 bean 由容器启动的事务的最长持续时间。 容器启动的企业 bean 事务的最长持续时间。 如果事务持续时间超过 <trans-timeout-seconds>、 WebLogic 的 EJB 容器会恢复到以前的事务版本。 该规则检测 WebLigic-specific <trans-timeout-seconds> 元素。

weblogic-ejb-jar.xml
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<transaction-descriptor> 交易描述符
<trans-timeout-seconds>20</trans-timeout-seconds>
</transaction-descriptor>
...
</weblogic-enterprise-bean>
</weblogic-ejb-jar>

自动修复将把 trans-timeout-seconds 值迁移到相应的 相应的 WebSphere(R )应用服务器 扩展名文件