Show TOC

Transaction Synchronization RegistryLocate this document in the navigation structure

Use

The TransactionSynchronizationRegistry is an interface that is part of the Java Transaction API (JTA) implementation. It is designed to provide Enterprise Java Beans (EJBs), Web application components, persistence managers, and resource adapters with the abilities to associate resources with ongoing transactions, to register synchronization objects according to specific ordering semantics, to obtain the transaction context and status of ongoing transactions, and to mark these transactions for rollback.

The TransactionSynchronizationRegistry object can be used by any number of thread-safe application server components.

An instance of the TransactionSynchronizationRegistry interface can be looked up via JNDI by the standard name java:comp/TransactionSynchronizationRegistry or via a dependency injection @Resource of the type TransactionSynchronizationRegistry .

More Information

For more information about the transaction synchronization registry interface and the methods it provides, refer to the Java Transaction API specification and the TransactionSynchronizationRegistry JavaDoc at http://java.sun.com .