How to manually JTA transaction timeout weblogic
Once you configure WebLogic JTA and any transaction participants, the system manages transactions using the JTA API and the WebLogic JTA extensions.
While configuring JTA manually we stumbled upon this link provided in Oracle site. but some how when we tried the suggested method our config.xml file got corrupted and server failed to start.
Finally we came to know the correct syntax for configuring JTA manually. Please follow below steps to manually configure JTA.
Note: Take a backup of config.xml before changing anything.
Wrong Syntax(Which does not work)
<JTA MaxUniqueNameStatistics="5" TimeoutSeconds="300" RecoveryThresholdMillis="150000" MaxResourceUnavailableMillis="900000" MaxResourceRequestOnServer="60" MaxXACallMillis="180000" />
Correct Method:
We need to set the parameter as follows in config.xml:
<jta> <timeout-seconds>300</timeout-seconds> <max-unique-name-statistics>5</max-unique-name-statistics> <max-resource-requests-on-server>60</max-resource-requests-on-server> <max-xa-call-millis>180000</max-xa-call-millis> <max-resource-unavailable-millis>72000</max-resource-unavailable-millis> <recovery-threshold-millis>150000</recovery-threshold-millis> </jta>
For example:
..... </security-configuration> <jta> <timeout-seconds>300</timeout-seconds> <max-unique-name-statistics>5</max-unique-name-statistics> <max-resource-requests-on-server>60</max-resource-requests-on-server> <max-xa-call-millis>180000</max-xa-call-millis> <max-resource-unavailable-millis>72000</max-resource-unavailable-millis> <recovery-threshold-millis>150000</recovery-threshold-millis> </jta> <server> .....
In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.