使用 WebSphere 延伸來定義交易逾時秒數

<trans-timeout-seconds> 元素會指定 Enterprise Bean 之儲存器起始的交易持續時間上限。 如果交易的持續時間長於 <trans-timeout-seconds>,則 WebLogic 的 EJB 儲存器會回復至前一個交易版本。 此規則會偵測 WebLogic 專用 <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 )應用程式伺服器 擴充檔