OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/J

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

2.3.4 Acquiring the current transaction identifiers

By calling the getTrnID method from a CUP, you can obtain the current transaction global identifier and transaction branch identifier.

In the event of an error, you need the transaction global identifier to determine whether or not the transaction started from the CUP has been committed. To protect against possible errors, you should always call the getTrnID method after calling any of the following methods: