Name

Package javax.transaction

Synopsis

The javax.transaction package is the main package in the Java Transaction API (JTA). The JTA defines the interfaces needed to interact with a transaction manager. A transaction manager sits in between applications and shared resources, like a relational database or a messaging service, and ensures that transactional interactions between the two are handled correctly. An application server interacts directly with the transaction manager on behalf of client applications; application servers use the TransactionManager interface and Transaction objects, and client applications acquire UserTransactions through the application server. See the EJB chapter for an overview of the nature of transactions and how they are used in distributed applications to ensure consistency.

Interfaces

  • Status

  • Synchronization

  • Transaction

  • TransactionManager

  • UserTransaction

Exceptions

  • HeuristicCommitException

  • HeuristicMixedException

  • HeuristicRollbackException

  • InvalidTransactionException

  • NotSupportedException

  • RollbackException

  • SystemException

  • TransactionRequiredException

  • TransactionRolledbackException

Get Java Enterprise in a Nutshell, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.