使用 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® Application Server 延伸檔