|
Home TOC Index |
|
Search
Feedback |
Transaction Timeouts
For container-managed transactions, you control the transaction timeout interval by setting the value of the
transaction.timeoutproperty in thedefault.propertiesfile, which is in theconfigdirectory of your J2EE SDK installation. For example, you would set the timeout value to 5 seconds as follows:transaction.timeout=5With this setting, if the transaction has not completed within 5 seconds, the EJB container rolls it back.
When the J2EE SDK is first installed, the timeout value is set to 0:
transaction.timeout=0If the value is 0, the transaction will not time out.
Only enterprise beans with container-managed transactions are affected by the
transaction.timeoutproperty. For enterprise beans with bean-managed JTA transactions, you invoke thesetTransactionTimeoutmethod of theUserTransactioninterface.
|
Home TOC Index |
|
Search
Feedback |