OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P

[Contents][Index][Back][Next]

2.4.6 Detecting the synchronous point of a transaction when an error occurs

If an error occurs in a transaction started from the CUP, it can be detected whether its transaction branch has been committed. To detect whether the transaction branch has been committed, you must execute the dc_clt_get_trnid_s function to acquire the current transaction global identifier and transaction branch identifier after the transaction has started.

The transaction global identifier collected by the CUP is compared with the result of the transaction output to the server-side message log file to detect whether the transaction started from the CUP has been committed. The contents of the message log file can be displayed by the 'logcat' command. For the 'logcat' command, see the manual OpenTP1 Operation.

The following figure shows the detection method for the synchronous point of a transaction in the event of an error.

Figure 2-17 Detection method for synchronous point of transaction in the event of error

[Figure]