Configuration 2 definitions
The definitions required for Configuration 2 are as follows (note that the definitions do not take into account triggering, and that only channel definitions for communication using TCP/IP are provided).
It is assumed that queue managers QMG2 and QMG3 are already configured to be members of the same queue sharing group.
On QMG1
Remote queue definition:
DEFINE QREMOTE(PAYROLL.QUERY) DESCR('Remote queue for QMG3') REPLACE + PUT(ENABLED) RNAME(PAYROLL) RQMNAME(QMG3) XMITQ(QMG2)Transmission queue definition:
DEFINE QLOCAL(QMG2) DESCR('Transmission queue to QMG2') REPLACE + PUT(ENABLED) USAGE(XMITQ) GET(ENABLED)Sender channel definition (for TCP/IP):
DEFINE CHANNEL(QMG1.TO.QMG2) CHLTYPE(SDR) TRPTYPE(TCP) REPLACE + DESCR('Sender channel to QMG2') XMITQ(QMG2) CONNAME('MVSQMG2(1415)')Here you replace MVSQMG2(1415) with your queue manager connection name and port.
Receiver channel definition (for TCP/IP):
DEFINE CHANNEL(QMG2.TO.QMG1) CHLTYPE(RCVR) TRPTYPE(TCP) + REPLACE DESCR('Receiver channel from QMG2')Reply-to queue definition:
DEFINE QLOCAL(PAYROLL.REPLY) REPLACE PUT(ENABLED) GET(ENABLED) + DESCR('Reply queue for replies to payroll queries sent to QMG3')
On QMG2
Transmission queue definition:
DEFINE QLOCAL(QMG1) DESCR('Transmission queue to QMG1') REPLACE + PUT(ENABLED) USAGE(XMITQ) GET(ENABLED) DEFINE QLOCAL(SYSTEM.QSG.TRANSMIT.QUEUE) QSGDISP(SHARED) + DESCR('IGQ Transmission queue') REPLACE PUT(ENABLED) USAGE(XMITQ) + GET(ENABLED) INDXTYPE(CORRELID) CFSTRUCT('APPLICATION1') + DEFSOPT(SHARED) DEFPSIST(NO)Here you replace APPLICATION1 with your defined CF structure name. Also note that this queue, being a shared queue, need only be defined on one of the queue managers in the queue sharing group.
Sender channel definitions (for TCP/IP):
DEFINE CHANNEL(QMG2.TO.QMG1) CHLTYPE(SDR) TRPTYPE(TCP) REPLACE + DESCR('Sender channel to QMG1') XMITQ(QMG1) CONNAME('WINTQMG1(1414)')Here you replace WINTQMG1(1414) with your queue manager connection name and port.
Receiver channel definition (for TCP/IP):
DEFINE CHANNEL(QMG1.TO.QMG2) CHLTYPE(RCVR) TRPTYPE(TCP) + REPLACE DESCR('Receiver channel from QMG1')Queue Manager definition:
ALTER QMGR IGQ(ENABLED)
On QMG3
Local queue definition:
DEFINE QLOCAL(PAYROLL) DESCR('Payroll query request queue') REPLACE + PUT(ENABLED) USAGE(NORMAL) GET(ENABLED) SHAREQueue Manager definition:
ALTER QMGR IGQ(ENABLED)Parent topic: Configuration 2