Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX - |
Contents
Index
![]() ![]() |
Part 1 The Basic for Developing Application | > Chapter 5 Transaction Function | > 5.1 Overview of Transactions |
A transaction is started automatically by the initial data update process following establishment of a connection, or after the previous transaction has finished. Subsequent data updates do not become part of the transaction until the transaction is terminated.
Transactions are terminated by a commit or rollback operation. A commit operation enables all changes, and a rollback operation cancels all changes.
Commit and rollback operations use the following APIs. These APIs enable applications to stop transactions at any time.
Language type |
API name |
---|---|
Java API |
commit |
rollback |
|
.NET API |
Commit |
Rollback |
|
C API |
ShunCommit |
ShunRollback |
Transactions will also terminate in the situations shown in the following table.
The table lists the causes of terminations and the resulting operations.
Main cause of termination |
Operation |
---|---|
An application process terminates. |
Transactions that are running when the application process terminates will be rolled back. |
The conductor judges that the application process has terminated because the application server fails or a network problem occurs.(*1) |
|
An error that does not allow the transaction to continue occurs. |
The transaction will be rolled back and the rollback will be reported to the application as an API result. |
*1) Refer to Recovering Shunsaku System in the Troubleshooting for more information on restoration methods.
Contents
Index
![]() ![]() |