RWDBDatabase Objects
In order for the DB XA Module to interact with a resource manager and establish connectivity, you must create an instance of RWDBDatabase by calling:
RWDBDatabase RWDBManager::database("accessLib", "", "", "", "", "XA=dbAlias");
All arguments are of type RWCString. Note that establishing an XA connection to the DB2 UDB requires only two of the six database() arguments, as described here:
accessLib
The argument for the first parameter is the same as that which you provide for the non-XA connection.
For static libraries, supply the string "DB2CLI".
For shared libraries, supply the name of your shared access library, for example "libdb2<ver>12d.so".
propertyString or "XA=dbAlias"
This last parameter provides the database alias name, passed as the value of the key XA. This database alias name should be the same as that provided in open string while registering with the TPM. For more information, see Configuring the Resource Manager .