NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.0+)
resume(ControlRef)
Sets or resumes association of a transaction with the calling thread.
rollback()
Rolls back the transaction associated with the calling thread.
suspend()
Suspends the association of the calling thread with a transaction
context.
When you use the Current class with JDBC to access a SQL/MP database, you must also use the
transaction-aware SQL/MP driver.
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 SQL/MP using transaction-aware JDBC driver
// ... access Pathway server
// commit current transaction (JDBC and Pathway)
tx.commit(true);
For more information on the Current class, see its reference page.
For more information about Java-to-Pathway support by NonStop
TM
Server for Java, see Accessing
Pathway Servers.
Java Transaction API (JTA)
NonStop
TM
Server for Java supports transactions by means of the Compaq NonStop
TM
Java
Transaction API, which is an implementation of Sun Microsystems JTA Version 1.0. NonStop
TM
Java Transaction API implements parts of the Sun Microsystems JTA package,
javax.transaction. NonStop
TM
Server for Java includes the NonStop
TM
Java Transaction API
package com.tandem.jta.
The NonStop
TM
Java Transaction API provides a standard interface for transactions on both
homogeneous Compaq NonStop
TM
Kernel systems by means of TMF and heterogenous CORBA
systems by means of JTS.
The version of NonStop
TM
Java Transaction API that uses TMF is called NonStop
TM
Java
Transaction API-TMF; the version of NonStop
TM
Java Transaction API that uses JTS is called
NonStop
TM
Java Transaction API-JTS. NonStop
TM
Java Transaction API-TMF and NonStop
TM
Java
Transaction API-JTS have identical interfaces. You can specify TMF or JTS when you use
JTAFactory.getUserTransaction to get a reference to