What is the Java Transaction API (JTA)?

Jerry Smith

JTA is a service-oriented API specification. Typically, we think of JTA as the service API used by application programmers to group operations into one or more logical transactions. JTA actually provides three types of services:

  • Transactional operations in client applications
  • Transactional operations in application servers performed on behalf of clients
  • Global transactional management in a Java transaction manager coordinating multiple transaction-capable resource managers such as database servers and messaging systems

The most noticeable and often-used functionality is javax.transaction.UserTransaction, which provides services for explicit client control of transactions.