Product SiteDocumentation Site

2.3. UserTransaction

The UserTransaction interface provides applications with the ability to control transaction boundaries. It provides methods begin , commit , and rollback to operate on top-level transactions.
Nested transactions are not supported, and method begin throws the exception NotSupportedException if the calling thread is already associated with a transaction. UserTransaction automatically associates newly created transactions with the invoking thread.
To obtain a UserTransaction , call the static method com.arjuna.ats.jta.UserTransaction.userTransaction() .
Procedure 2.1. Selecting the local JTA Implementation
  1. Set property JTAEnvironmentBean.jtaTMImplementation to com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple .
  2. Set property JTAEnvironmentBean.jtaUTImplementation to com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple .