NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.0+)

javax.transaction.UserTransaction (see examples). The default is TMF.
NonStop
TM
Java Transaction API-TMF is intended for non-CORBA applications. NonStop
TM
Java
Transaction API-JTA is intended for CORBA applications. If you use NonStop
TM
Java Transaction
API-JTS for non-CORBA applications, results are unpredictable.
This subsection explains the following subjects:
javax.transaction interfaces
javax.transaction exceptions
Examples
For more information about JTA, see the Sun Microsystems JTA document
(http://www.javasoft.com/products/jta/index.html).
javax.transaction Interfaces
The Sun Microsystems JTA package, javax.transaction, defines the following interfaces:
Status
Synchronization
Transaction
TransactionManager
UserTransaction
NonStop
TM
Java Transaction API supports all of the preceding interfaces, but only
UserTransaction is available to client programs.
UserTransaction allows the client to control transaction boundaries programmatically.
UserTransaction methods do the following:
Begin transaction
Commit transaction
Obtain transaction status
Mark transaction for rollback
Rollback transaction
Set timeout for transaction *
* NonStop
TM
Java Transaction API-TMF does not support the
UserTransaction.setTransactionTimeout method. Trying to use this method will
cause an exception to be thrown.
javax.transaction Exceptions
The Sun Microsystems JTA package, javax.transaction, defines the following exceptions.
NonStop
TM
Java Transaction API supports all of them.
HeuristicCommitException