I have created a WMQ cluster with 3 QMgrs. 2 Full repository and 1 partial repository. Here is the mqsc used:
crtmqm GW
strmqm GW
runmqsc GW
alter qmgr deadq('SYSTEM.DEAD.LETTER.QUEUE')
define listener(gw.listener) trptype(TCP) port(1416) ipaddr(xx.xx.xx.xx)
start listener(gw.listener)
define channel(SYSTEM.ADMIN.SVRCONN) chltype(svrconn)
ALTER QMGR CHLAUTH(DISABLED)
end
runmqsc QM01
alter qmgr repos('DEVELOPMENT.CLUSTER')
end
runmqsc QM02
alter qmgr repos('DEVELOPMENT.CLUSTER')
end
runmqsc QM01
define chl(to.QM01) chltype(clusrcvr) trptype(tcp) +
conname('xx.xx.xx.xx(1414)') cluster(DEVELOPMENT.CLUSTER)
end
runmqsc QM02
define chl(to.QM02) chltype(clusrcvr) trptype(tcp) +
conname('xx.xx.xx.xx(1415)') cluster(DEVELOPMENT.CLUSTER)
end
runmqsc GW
define chl(to.GW) chltype(clusrcvr) trptype(tcp) +
conname('xx.xx.xx.xx(1416)') cluster(DEVELOPMENT.CLUSTER)
end
runmqsc QM01
DEFINE CHANNEL(TO.QM02) CHLTYPE(CLUSSDR) TRPTYPE(TCP) +
CONNAME('xx.xx.xx.xx(1415)') CLUSTER(DEVELOPMENT.CLUSTER)
end
runmqsc QM02
DEFINE CHANNEL(TO.QM01) CHLTYPE(CLUSSDR) TRPTYPE(TCP) +
CONNAME('xx.xx.xx.xx(1414)') CLUSTER(DEVELOPMENT.CLUSTER)
end
runmqsc GW
DEFINE CHANNEL(TO.QM01) CHLTYPE(CLUSSDR) TRPTYPE(TCP) +
CONNAME('xx.xx.xx.xx(1414)') CLUSTER(DEVELOPMENT.CLUSTER)
DEFINE CHANNEL(TO.QM02) CHLTYPE(CLUSSDR) TRPTYPE(TCP) +
CONNAME('xx.xx.xx.xx(1415)') CLUSTER(DEVELOPMENT.CLUSTER)
end
runmqsc QM02
define qlocal('BACKUP') CLUSTER(DEVELOPMENT.CLUSTER)
define qlocal('PROVIDER') CLUSTER(DEVELOPMENT.CLUSTER)
define qlocal('RESPONSE') CLUSTER(DEVELOPMENT.CLUSTER)
define qlocal('STORE') CLUSTER(DEVELOPMENT.CLUSTER)
REFRESH CLUSTER(DEVELOPMENT.CLUSTER) REPOS(YES)
end
runmqsc QM01
define qlocal('BACKUP') CLUSTER(DEVELOPMENT.CLUSTER)
define qlocal('PROVIDER') CLUSTER(DEVELOPMENT.CLUSTER)
define qlocal('RESPONSE') CLUSTER(DEVELOPMENT.CLUSTER)
define qlocal('STORE') CLUSTER(DEVELOPMENT.CLUSTER)
REFRESH CLUSTER(DEVELOPMENT.CLUSTER) REPOS(YES)
end
Now I am putting a message to QMgr GW on queue PROVIDER. Please note that GW does not host this queue. It is hosted by QM01 and QM02
amqsput PROVIDER GW
Sadly all the messages are going to dead letter queue of the QMgr GW.
Kindly help to fix this. Any suggestions for debugging will help a lot.