NonStop Server for Java 4.2 Programmer's Reference
Title Page | Contents | Index | Glossary | Prev | Next
Transactions
The NonStop Server for Java 4 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).●
This section explains these subjects:
Controlling Maximum Concurrent Transactions●
Current Class Methods●
Java Transaction API (JTA)●
If you use JNI and transactions, see Java Native Interface (JNI). When you use JNI, the information
under Controlling Maximum Concurrent Transactions applies.
Controlling Maximum Concurrent
Transactions
NonStop Server for Java 4 application processes can start, by default, a maximum of 1000 concurrent
transactions in each process. By setting the JAVA_PTHREAD_MAX_TRANSACTIONS environment
variable, you can limit the maximum number of TMF transactions allowed per process to less than 1000.
The syntax follows:
JAVA_PTHREAD_MAX_TRANSACTIONS environment variable
Specifies the maximum number of TMF transactions allowed per process.
Allowed values are 100 through 1000. The default value of 1000 is used when:
The variable is not set.
❍
The variable is set to a value less than 100 or to a value greater than 1000.❍
For example, to specify 200 transactions per process, use the following command.
export JAVA_PTHREAD_MAX_TRANSACTIONS=200
Note: The maximum number of concurrent transactions allowed is 1000.