Author |
Message
|
kinf1 |
Posted: Tue Apr 04, 2006 7:00 pm Post subject: QM as a member of two clusters |
|
|
Novice
Joined: 15 Mar 2006 Posts: 15
|
Hi,
How can I make a queue manager a member of two clusters? And,how can i communicate between the two clusters with the help of the common queue manager.
Thanks. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Apr 04, 2006 7:33 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Read the clustering manual and all your questions will be answered. !!  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Nizam |
Posted: Tue Apr 04, 2006 7:59 pm Post subject: |
|
|
Disciple
Joined: 10 Feb 2004 Posts: 160
|
Look into the CLUSNL attribute of the queue manager. _________________ Nyzam
IBM Cert. Solution Designer - WBIMB V5
IBM Cert. Administrator - WBIMB V5
IBM Cert. Administrator - WebSphere MQ V5.3 |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Wed Apr 19, 2006 11:48 pm Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
to intercommunicate between two clusters (let's say CL1 and CL2) you need the following:
a q definition (e. g. alias q) which is a member of CL1 and points to a target queue in CL2
another q definition (e. g. alias q) which is a member of CL2 and points to a target queue in CL1
Sample:
qmgr QM1 (member of CL1)
qmgr QM2 (member of CL2)
gateway qmgr QMGW (member of CL1 and CL2)
local q Q1 on QM1 (member of CL1)
local q Q2 on QM2 (member of CL2)
alias q Q12 on QMGW (member of CL1) with base q Q2
alias q Q21 on QMGW (member of CL2) with base q Q1
Remember, the queues Q12 and Q21 must be defined with DEFBIND(NOTFIXED) (otherwise the target will be only resolved to qs local to qmgr QMGW). _________________ Regards
Hubert |
|
Back to top |
|
 |
Ivans |
Posted: Thu Apr 20, 2006 12:27 am Post subject: |
|
|
Apprentice
Joined: 03 Jan 2006 Posts: 48 Location: Hursley
|
Quote: |
Look into the CLUSNL attribute of the queue manager. |
A queue manager can also be a member of more than one cluster without using CLUSNL, by using separate channels for each cluster.
Regards,
Ian |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Thu Apr 20, 2006 12:36 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
Ivans wrote: |
Quote: |
Look into the CLUSNL attribute of the queue manager. |
A queue manager can also be a member of more than one cluster without using CLUSNL, by using separate channels for each cluster.
Regards,
Ian |
And if the CLUSNL attribute is used, you need it to set up for the channel - not for the QMgr (QMgrs only have a REPOSNL attribute, if they are repositories for more than one cluster). _________________ Regards
Hubert |
|
Back to top |
|
 |
EddieA |
Posted: Thu Apr 20, 2006 7:16 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
Remember, the queues Q12 and Q21 must be defined with DEFBIND(NOTFIXED) (otherwise the target will be only resolved to qs local to qmgr QMGW). |
The choice of DEFBIND will depend on the application architecture. It does not have to be NOTFIXED.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Tue Apr 25, 2006 6:55 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
EddieA wrote: |
Quote: |
Remember, the queues Q12 and Q21 must be defined with DEFBIND(NOTFIXED) (otherwise the target will be only resolved to qs local to qmgr QMGW). |
The choice of DEFBIND will depend on the application architecture. It does not have to be NOTFIXED.
Cheers, |
EddieA,
in the scenario I described above it must be defined with DEFBIND(NOTFIXED)! Otherwise the alias queues Q12 and Q21 would not resolve to the queues Q1 and Q2 !
This is because the queues are not local to the QMgr QMGW (where the queues Q12 and Q21 reside).
You find the description in the manual "Queue Manager Clusters", chapter 4 "How queue manager clusters work" and it does not depend on the application's architecture (in this case):
Quote: |
When you open a queue you need to set DEFBIND to either (NOTFIXED) or
(QDEF) because if it is left as the default (OPEN) the queue manager will resolve
the alias definition to the bridge queue manager that hosts it, and the bridge will
not forward the message on. |
_________________ Regards
Hubert |
|
Back to top |
|
 |
|