Configuring the Resource Manager
As explained in Chapter 4 , XA connections to your database are established by using the database() function in RWDBManager, and providing its propertyString parameter with key XA=xaParameter. This section explains how you obtain the DB2-specific value of the xaParameter argument.
When you run on DB2, the value of the xaParameter argument must be the same as that used for the database alias parameter in the open string passed to the TPM to open the database. The open string for the DB2 database takes the following form:
DB=<databaseAlias>,UID=<userName>,PWD=<password>
NOTE: Consult your DB2 and TPM documentation for complete and up-to-date information.
The parameters for the DB2 open string include:
*Database Alias: This parameter is the DB2 database alias name which is used to open a connection to the database. This is a required parameter.
Note that the value of this parameter is the same value that you provide in the argument XA=xaParameter when defining the propertyString parameter in RWDBManager::database(). See RWDBDatabase Objects .
*userName: The user name or user ID used while opening a connection to the database.
*password: The password corresponding to the user name provided.
In addition to the above parameters, other parameters like TPM, AXLIB, CHAIN_END, SUSPEND_CURSOR, and HOLD_CURSOR can also be provided in the open string. For the explanation of these parameters, please refer to section, “Setting Up a Database as a Resource Manager,” in the Administration Guide for DB2 UDB, provided by DB2.