NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.1+)
| Contents | Index | Glossary | Prev | Next
Transactions
The Compaq NonStop Server for Java...based on Java 2 Platform, Standard Edition, SDK 1.2.2 (short
form: NonStop Java) lets you work with transactions in several ways. You can:
Use the Current class methods to define transactions across transaction services, such as
transactions that include JDBC calls.
●
Use the Java Transaction API (JTA).●
Note: Compaq processes can start a maximum of 100 concurrent transactions in each
process. For more information on this limitation, see the NonStop TM/MP Application
Programmer's Guide.
This section explains these subjects:
Current Class Methods●
Java Transaction API (JTA)●
Current Class Methods
The Current class is based on version 0.5 of the Java Transaction Services (JTS) specification.
The following table describes the Current class methods.
Method Description
begin
Starts a new transaction and associates it with
the calling thread.
commit
Commits the transaction associated with the
calling thread.
get_control Gets a Control object representing the
transaction associated with the calling thread.
get_status
Gets the status of the transaction associated with
the calling thread.
get_transaction_name
Gets a descriptive name of the transaction
associated with the calling thread.