NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.1+)
resume
Sets or resumes association of a transaction with
the calling thread.
rollback
Rolls back the transaction associated with the
calling thread.
rollback_only
Marks the transaction associated with the calling
thread so that the only possible outcome is to
roll back the transaction.
set_timeout
Modifies the time-out value associated with
transactions started by subsequent invocations of
the begin method.
suspend
Suspends the association of the calling thread
with a transaction context.
The following code fragment shows how to use the begin() and commit() methods of the
Current class:
import com.tandem.tmf.Current;
Current tx = new Current();
// start a new transaction in the current thread
tx.begin();
// ... access Pathway server
// commit current transaction (JDBC and Pathway)
tx.commit(true);
For more information on the Current class, see the com.tandem.tmf.Current
documentation.
Java Transaction API (JTA)
NonStop Java supports transactions by means of the Compaq NonStop Java Transaction API, which
is an implementation of the Sun Microsystems JTA Version 1.0. NonStop Java Transaction API
implements parts of the Sun Microsystems JTA package, javax.transaction. NonStop Java
includes the NonStop Java Transaction API package com.tandem.jta.
The NonStop
Java Transaction API provides a standard interface for transactions on both
homogeneous Compaq NonStop
Kernel systems by means of TMF and heterogenous CORBA
systems by means of JTS.
The version of NonStop Java Transaction API that uses TMF is called NonStop Java Transaction