Posted: Wed Jan 29, 2003 8:33 pm Post subject: QM Connecting to Multiple DB2 Instances
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
We are having some difficulty configuring our environment to allow a development queue manager to connect to multiple DB2 instances for transaction co-ordination. Could anyone provide some guidance re the DB2 and MQ configuration steps we should follow to achieve this?
Joined: 15 May 2001 Posts: 540 Location: New Zealand
Thanks for response....however we have no difficulty configuring for a single DB2 instance, as shown in Neil's doc...our problem seems to be in co-ordinating the instance that the queue manager connects to with the instances that the individual apps are using.
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
I thought that you just needed to add another XAResourceManager stanza to your qm.ini file. Your program then worked as normal. There are a couple of single db samples (mqadhoc.c - cli; mqdb2.sqc - embedded sql) at http://www.developer.ibm.com/tech/sampmq.html. Does this help?
(Note: If your on Windows, you use the explorer to add the stanzas.)
Joined: 15 May 2001 Posts: 540 Location: New Zealand
The XAResourceManager stanzas specify the databases that will be co-ordinated. The DB2INSTANCE environment variable must be set for the queue managers environment and specifies the DB2 instance that contains the databases. In our development environment development teams work with databases in their own DB2 instances but access a single queue manager. We therefore need our queue manager to be able to connect to databases in multiple instances and need to define a DB2INSTANCE variable that will allow this.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum