[ Team LiB ] Previous Section Next Section

Other JTA Interfaces

JTA also includes the interfaces described in the next sections, which provide status and synchronization information and allow a transaction manager to work with resource managers.

NOTE

These interfaces are accessed by only the transaction manager.


The Status Interface

The Status interface (javax.transaction.Status) provides real-time transaction status. It enables you to specify the exact status of the transaction; for example, whether the transaction should be committed or rolled back.

The Synchronization Interface

The Synchronization interface (javax.transaction.Synchronization) provides notification with a registered listener before and after a transaction completes. You can register a transaction callback listener for each transaction that is invoked by the transaction manager.

The XAResource Interface

The XAResource interface (javax.transaction.xa.XAResource) is used by only the transaction manager to work with resource managers of XA-compliant resources. The industry-standard XA interface is based on the X/Open CAE specification.

The Xid Interface

The Xid interface (javax.transaction.xa.Xid) is also used by only the transaction manager to retrieve transaction identifiers from the X/Open transaction identifier (XID) structure. The XID is rarely if ever accessed by an application server in the context of transactional processing. The Xid interface provides methods that provide the transaction's format ID, a global transaction ID, and a branch qualifier.

    [ Team LiB ] Previous Section Next Section