gtpc2m8yC/C++ Language Support User's Guide

tx_open-Open a Set of Resource Managers

This function opens a set of resource managers. The TPF restart program calls the tx_open function to open all registered resource managers at restart time.

Format

#include   <tpfapi.h>
int         tx_open();

Normal Return

Table 26. tx_open Normal Return

Value Name Return Code Description
TX_OK 1 The function is completed successfully.

Error Return

Table 27. tx_open Error Return

Value Name Return Code Description
TX_FATAL -7 Resource manager error.

Programming Considerations

This function can only be called from the TPF restart program.

Note:
The TPF system does not support a tx_close function. All TPF resource managers remain open after transaction manager restart is completed.

Examples

The following example shows a tx_open call to open a set of resource managers.

#include   <tpfapi.h>
           tx_open();

Related Information

tx_begin-Begin a Global Transaction.