NonStop Server for Java Programmer's Reference (NSJ 4.2+)

javax.transaction Interfaces
The Sun Microsystems JTA package, javax.transaction, defines the following interfaces:
Status
Synchronization
Transaction
TransactionManager
UserTransaction
NonStop Server for 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
javax.transaction Exceptions
The Sun Microsystems JTA package, javax.transaction, defines the following exceptions.
NonStop Server for Java Transaction API supports all of them.
HeuristicCommitException
HeuristicMixedException
HeuristicRollbackException
InvalidTransactionException
NotSupportedException
TransactionRequiredException
TransactionRolledbackException
SystemException
Examples
The following examples are identical except that:
The first example uses NonStop Server for Java Transaction API-TMF by default
The second example requests NonStop Server for Java Transaction API-TMF
The third example requests NonStop Server for Java Transaction API-JTS