Skip Headers

# Integrating the Unit of Work With an External Transaction Service

Previous

Next

To support transactions managed by an application server's external transaction service, TopLink supports external connection pools and external transaction controller classes for supported servers. This lets you incorporate external transaction service support into your application, and use the unit of work with transactions managed externally by the server. For more information, see "Unit of Work Transaction Demarcation".

To integrate a unit of work with an external transaction service, you must enable the use of the following:

- an external transaction controller (see "Configuring the Server Platform")

- an external connection pool (see "Configuring External Connection Pooling")

After you configure external connection pool and external transaction controller support, you use a unit of work in your TopLink application as you would typically, with few exceptions. This section describes these exceptions as follows:

- Acquiring a Unit of Work With an External Transaction Service

- Using a Unit of Work When an External Transaction Exists

- Using a Unit of Work When No External Transaction Exists

- Using the Unit of Work to Handle External Transaction Timeouts and Exceptions