3.4.1 Transaction management methods for the resource connections

The transaction management methods for the resource connections include the Application Server-managed method and non-Application Server-managed method (user-managed method). This subsection describes each transaction management method.

Organization of this subsection
(1) Application Server-managed transactions
(2) User-managed transactions (Transactions not managed by Application Server)

(1) Application Server-managed transactions

In this method, transactions are managed through the Application Server transaction manager. The user manages the transaction either by operating the APIs of the javax.transaction.UserTransaction interface or by specifying the CMT attributes of the EJB method.

For Application Server-managed transactions, you can choose a local transaction or global transaction as the transaction type. For the types of Application Server-managed transactions, see 3.4.2 Local transaction and global transaction.

(2) User-managed transactions (Transactions not managed by Application Server)

In this method, the user directly manages the transactions using the resource-specific APIs. For example, when the JDBC interface is used to connect to the database, the user directly operates the APIs such as setAutoCommit(), commit(), and rollback() of the java.sql.Connection interface.