使用 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 )應用程式伺服器 擴充檔