DBTools.h++ XA had a similar structure to DB XA Module. There are, however, some differences that require you to modify code for any applications written with DBTools.h++ XA.
DBTools.h++ XA had class RWDBXAManager that was responsible for generating XA connections and providing a vendor-independent XA switch.
SourcePro DB class RWDBManager encompasses the tasks of RWDBXAManager. It produces both non-XA as well as XA connections. It also provides a vendor-independent XA switch.
DBTools.h++ XA was used to produce an XA-enabled database instance by calling the static method:
static RWDBDatabase RWDBXAManager::database(const RWCString& accesslib, const RWCString& xaParameter)
In SourcePro DB, the same can be achieved by calling the static method RWDBManager::database with the xaParameter passed in the propertyStringpropertyString as the value of the key XA. Compare the following:
DBTools.h++ XA
RWDBXAManager::database("myAccessLib", "xaParameter"); SourcePro DB RWDBManager::database("myAccessLib", "","","","","", "XA=xaParameter");
A database vendor-specific XA switch was obtained in DBTools.h++ XA by calling the static method:
static void* RWDBXAManager::xaSwitch(const RWCString& accesslib)
In SourcePro DB, this can be achieved by calling the static method onRWDBManager. The prototype for the function remains the same:
static void* RWDBManager::xaSwitch(const RWCString& accesslib)
DBTools.h++ XA
RWDBXAManager::xaSwitch("ORACLE OCI"); SourcePro DB RWDBManager::xaSwitch("ORACLE OCI");
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.