# Uses of Package
javax.transaction

- Packages that use javax.transaction
  Package | Description
  --- | ---
  javax.ejb | Contains the Enterprise JavaBeans classes and interfaces that define the contracts between the enterprise bean and its clients and between the enterprise bean and the EJB container.
  javax.resource.spi | The javax.resource.spi package contains APIs for the system contracts defined in the Java EE Connector Architecture specification.
  javax.transaction | Provides the API that defines the contract between the transaction manager and the various parties involved in a distributed transaction namely : resource manager, application, and application server.

- Classes in javax.transaction used by javax.ejb
  Class and Description
  UserTransaction The UserTransaction interface defines the methods that allow an application to explicitly manage transaction boundaries.

- Classes in javax.transaction used by javax.resource.spi
  Class and Description
  TransactionSynchronizationRegistry This interface is intended for use by system level application server components such as persistence managers, resource adapters, as well as EJB and Web application components.

- Classes in javax.transaction used by javax.transaction
  Class and Description
  HeuristicMixedException This exception is thrown to report that a heuristic decision was made and that some relevant updates have been committed and others have been rolled back.
  HeuristicRollbackException This exception is thrown by the commit operation to report that a heuristic decision was made and that all relevant updates have been rolled back.
  InvalidTransactionException This exception indicates that the request carried an invalid transaction context.
  NotSupportedException NotSupportedException exception indicates that the request cannot be executed because the operation is not a supported feature.
  RollbackException RollbackException exception is thrown when the transaction has been marked for rollback only or the transaction has been rolled back instead of committed.
  Synchronization The transaction manager supports a synchronization mechanism that allows the interested party to be notified before and after the transaction completes.
  SystemException The SystemException is thrown by the transaction manager to indicate that it has encountered an unexpected error condition that prevents future transaction services from proceeding.
  Transaction The Transaction interface allows operations to be performed against the transaction in the target Transaction object.
  Transactional.TxType The TxType element of the annotation indicates whether a bean method is to be executed within a transaction context where the values provide the following corresponding behavior.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.