RWDBDatabase Objects
In order for the DB XA Module to interact with a resource manager to establish connectivity to a database, you must create an instance of
RWDBDatabase by calling:
RWDBManager::database("accessLib", "", "", "", "", "XA=lrm_name");
All arguments are of type
RWCString. Note that establishing an XA connection to the Sybase database 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 "SYBASE_CT".
For shared libraries, supply the name of your shared access library, for example "libct<ver>8d.so".
propertyString or
"XA=lrm_name" The argument for the sixth and last parameter,
propertyString, provides the
lrm_name specified in the XA configuration file. This LRM name should be the same as the
lrm_name parameter that you provided in the open string while registering with the TPM. For more information, see
Configuring the Resource Manager .