The Java Transaction API and WebLogic

JTA specifies local, high-level Java interfaces between a transaction manager and the other parties involved in a distributed transactional system. The JTA package, javax.transaction, contains three core interfaces:

  • UserTransaction

  • TransactionManager

  • Transaction

The UserTransaction Interface

The UserTransaction interface is implemented for bean-managed transaction boundaries. It defines six methods that allow an application to explicitly manage transaction boundaries:

  • begin— Creates a new transaction associated with the current thread

  • commit— Commits a transaction

  • getStatus— Returns the status of a transaction as an integer

  • rollback— Immediately rolls back the transaction associated with the current thread ...

Get BEA WebLogic Server™ 8.1 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.