To use the resource connection and transaction management functionality, you must set up the J2EE server and the resource adapters.
Specify the J2EE server settings with the Easy Setup definition file. Define the resource connection and the transaction management functionality in the <configuration> tag of the logical J2EE server (j2ee-server) in the Easy Setup definition file. The following table describes the settings in the Easy Setup definition file. Note that with transaction management you can also specify a transaction timeout.
For details on the Easy Setup Definition file and parameters, see 4.6 Easy Setup Definition file in the uCosminexus Application Server Definition Reference Guide.
For details on the transaction timeout, see 3.15.8 Transaction timeout and statement cancellation.
Table 3-18 Definition in the Easy Setup definition file for using the resource connection and transaction management functionality
Items | Specified parameters | Settings |
---|---|---|
Transaction types | ejbserver.distributedtx.XATransaction.enabled | Specifies whether to use the light transaction or the global transaction. By default, the light transaction is enabled. |
Client transaction operations when a system exception occurs | ejbserver.distributedtx.rollbackClientTxOnSystemException | Specifies whether to mark the client transaction for rollback when a system exception occurs. |
Directory storing the status file |
| Specified as a directory for storing the status file of the in-process transaction service and the status file backup. |
Timeout in error detection | ejbserver.connectionpool.validation.timeout | Specifies the timeout value for the connection error detection functionality and the timeout value for the deletion of connections using the connection count adjustment functionality. |
Use the server management commands and property files to specify the resource adapter settings in the execution environment. Define the functionality for managing transactions in the <resourceadapter> tag of the HITACHI Connector Property file. The following table describes the settings.
For details on the HITACHI Connector Property file, see 4.1 HITACHI Connector Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
Table 3-19 Definition in the HITACHI Connector Property file for the transaction management functionality
Items | Specified tags | Settings |
---|---|---|
Transaction support level | <outbound-resourceadapter>-<transaction-support> tag | Specifies the transaction support levels. Specify no transaction management (NoTransaction), local transaction (LocalTransaction), or global transaction (XATransaction). |