Communication between Queue Managers in MQ 7.5
Creating MQ connection between two queue managers, QMA & QMB
1. Creating queue manager QMA
ALTER QMGR +
* ALTDATE(2018-05-19) +
* ALTTIME(15.19.41) +
CCSID(437) +
CLWLUSEQ(LOCAL) +
* COMMANDQ(SYSTEM.ADMIN.COMMAND.QUEUE) +
* CRDATE(2018-05-19) +
* CRTIME(15.19.41) +
DEADQ('QMA.DLQ') +
DEFXMITQ('QMA') +
* PLATFORM(WINDOWSNT) +
* QMID(QMA_2018-05-19_15.19.41) +
SSLCRYP(' ') +
SSLKEYR('C:\Program Files\IBM\WebSphere MQ\qmgrs\QMA\ssl\key') +
SUITEB(NONE) +
* VERSION(07050002) +
FORCE
Creating MQ connection between two queue managers, QMA & QMB
1. Creating queue manager QMA
ALTER QMGR +
* ALTDATE(2018-05-19) +
* ALTTIME(15.19.41) +
CCSID(437) +
CLWLUSEQ(LOCAL) +
* COMMANDQ(SYSTEM.ADMIN.COMMAND.QUEUE) +
* CRDATE(2018-05-19) +
* CRTIME(15.19.41) +
DEADQ('QMA.DLQ') +
DEFXMITQ('QMA') +
* PLATFORM(WINDOWSNT) +
* QMID(QMA_2018-05-19_15.19.41) +
SSLCRYP(' ') +
SSLKEYR('C:\Program Files\IBM\WebSphere MQ\qmgrs\QMA\ssl\key') +
SUITEB(NONE) +
* VERSION(07050002) +
FORCE
DEFINE LISTENER('LISTENER.TCP') TRPTYPE(TCP) CONTROL(QMGR) +
PORT(1424) +
* ALTDATE(2018-05-19) +
* ALTTIME(15.20.15) +
REPLACE
2. Creating queue manager QMB
ALTER QMGR +
* ALTDATE(2018-05-19) +
* ALTTIME(15.21.08) +
CCSID(437) +
CLWLUSEQ(LOCAL) +
* COMMANDQ(SYSTEM.ADMIN.COMMAND.QUEUE) +
* CRDATE(2018-05-19) +
* CRTIME(15.21.08) +
DEADQ('QMB.DLQ') +
DEFXMITQ('QMB') +
* PLATFORM(WINDOWSNT) +
* QMID(QMB_2018-05-19_15.21.08) +
SSLCRYP(' ') +
SSLKEYR('C:\Program Files\IBM\WebSphere MQ\qmgrs\QMB\ssl\key') +
SUITEB(NONE) +
* VERSION(07050002) +
FORCE
DEFINE LISTENER('LISTENER.TCP') TRPTYPE(TCP) CONTROL(QMGR) +
PORT(1434) +
* ALTDATE(2018-05-19) +
* ALTTIME(15.21.30) +
REPLACE
3. Create a local queues
on QMA -
DEFINE QLOCAL('Queue.A') +
* ALTDATE(2018-05-19) +
* ALTTIME(15.50.23) +
* CRDATE(2018-05-19) +
* CRTIME(15.50.23) +
* CURDEPTH(2) +
DEFPSIST(YES) +
DISTL(NO) +
MAXDEPTH(5000) +
REPLACE
on QMB -
DEFINE QLOCAL('Queue.B') +
* ALTDATE(2018-05-19) +
* ALTTIME(16.18.58) +
* CRDATE(2018-05-19) +
* CRTIME(16.18.58) +
DEFPSIST(YES) +
DISTL(NO) +
MAXDEPTH(5000) +
REPLACE
DEFINE QREMOTE('RM.Q.A') +
* ALTDATE(2018-05-19) +
* ALTTIME(16.02.21) +
DEFPSIST(YES) +
RQMNAME('QMA') +
RNAME('Queue.A') +
XMITQ('SYSTEM.CLUSTER.TRANSMIT.QUEUE') +
REPLACE
4. Create Sender and Receiver channels
on QMA -
DEFINE CHANNEL('QMA.QMB') +
CHLTYPE(SDR) +
* ALTDATE(2018-05-19) +
* ALTTIME(16.00.00) +
CONNAME('localhost(1434)') +
DISCINT(6000) +
TRPTYPE(TCP) +
XMITQ('SYSTEM.CLUSTER.TRANSMIT.QUEUE') +
REPLACE
DEFINE CHANNEL('QMB.QMA') +
CHLTYPE(RCVR) +
* ALTDATE(2018-05-19) +
* ALTTIME(15.25.40) +
TRPTYPE(TCP) +
REPLACE
on QMB -
DEFINE CHANNEL('QMA.QMB') +
CHLTYPE(RCVR) +
* ALTDATE(2018-05-19) +
* ALTTIME(15.24.41) +
TRPTYPE(TCP) +
REPLACE
DEFINE CHANNEL('QMB.QMA') +
CHLTYPE(SDR) +
* ALTDATE(2018-05-19) +
* ALTTIME(16.00.33) +
CONNAME('localhost(1424)') +
DISCINT(6000) +
TRPTYPE(TCP) +
XMITQ('SYSTEM.CLUSTER.TRANSMIT.QUEUE') +
REPLACE
5. Test
Put the message on the remote queue RM.Q.A of QMB and check the queue depth of Queue.A on QMA.
Put the message on the remote queue RM.Q.A of QMB and check the queue depth of Queue.A on QMA.
Comments
Post a Comment