In the X/Open XA model, Enterprise Server coordinates all XA activity, serving as an XA Transaction Manager (TM).
Enterprise Server works with XA-compliant Resource Managers (RMs) and manages the execution of:
For Enterprise Server to work properly with an RM, an XAR must be defined. An XAR definition must include:
A Micro Focus RM switch module is COBOL code that obtains the address of the XA switch data structure (xa_switch_t) provided by the RM, typically a database vendor. In addition, Micro Focus RM switch modules contain additional code that facilitates ease of use in Enterprise Server environments. RM switch modules are differentiated by their type, which is determined by the database vendor or other RM type. For example, you use an Oracle RM switch module type with Oracle databases, and so on.
Source code for RM switch modules is available in Visual COBOL, but is not included in the Enterprise Server product.
The XAR ID uniquely identifies your XAR, and is used as the value for the XAID compiler directive option when compiling source code, if required.
For further details the XAID compiler directive option topic for COBSQL, OpenESQL or DB2 ECM.