Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Great that you are using WMQ v7.0.1 at both the client and server! The trick to getting load balancing is in how you tag the channels in the CCDT. When you build the CCDT file the QMNAME parameter does not need to match the actual QMgr name. In fact, calling it QMNAME is rather unfortunate because it leads to the expectation that there is some correlation between that and the QMgr name the client connects to. In fact, it is just an index for the client app to use while searching the CCDT.</p> <p>So when you build the CCDT for your 10 QMgrs, each will need a different channel name but use the same QMgr name for all. So for example, </p> <pre><code>DEF CHL(QMGR01.CLNT) CHLTYPE(CLNTCONN) QMNAME(GTWY.QMGR) DEF CHL(QMGR02.CLNT) CHLTYPE(CLNTCONN) QMNAME(GTWY.QMGR) ... DEF CHL(QMGR10.CLNT) CHLTYPE(CLNTCONN) QMNAME(GTWY.QMGR) </code></pre> <p>Then when the application needs to connect it specifies GTWY.QMGR as the QMgr name. This resolves to the group of channel entries.</p> <p>OK, so that gets you failover but not load balancing. To get load balancing you will want to set CLNTWGHT and AFFINITY parameters as described in the V7 docs in the section <a href="http://bit.ly/aKCNno" rel="nofollow noreferrer">Examples of Channel Weighting and Affinity</a>. I would advise reading through the entire parent section <a href="http://bit.ly/crc9Yw" rel="nofollow noreferrer">Connecting WebSphere MQ client applications to queue managers</a>, especially the sections on CCDT and MQCONN.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload