3.1.8 XA interface

The XA interface is a part of a DTP model defined by X/Open.

The XA interface defines how the transaction manager and resource manager communicate with each other. UAPs do not use the XA interface directly. The following table lists the XA library subroutines used by OpenTP1 and the resource manager.

Table 3-3 XA library subroutines

No.Function nameDescription
1ax_regRegisters the resource manager in the transaction manager.
2ax_unregUnregisters the resource manager from the transaction manager.
3xa_closeCloses the resource manager.
4xa_commitThis function notifies the resource manager that all the resource managers will be committed after they are found to be committable (in the prepare status).
5xa_endNotifies the resource manager that the transaction has ended.
6xa_forgetNotifies the resource manager that the information about the ended transaction can be discarded at the discretion of the resource manager.
7xa_openOpens the resource manager.
8xa_prepareNotifies the resource manager that the transaction is being committed.
9xa_recoverObtains a list of undetermined transactions in the resource manager.
10xa_rollbackNotifies the resource manager that the transaction is to be rolled back.
11xa_startNotifies the resource manager that the transaction was started or restarted