Queue sharing group definitions
Producing the following object definitions for one member of the queue sharing group makes them available to all the other members.
Queue managers QM4 and QM5 are members of the queue sharing group. The definitions produced for QM4 are also available for QM5.
It is assumed that the coupling facility list structure is called 'APPLICATION1'. If it is not called 'APPLICATION1', you must use your own coupling facility list structure name for the example.
Shared objects
The shared object definitions are stored in Db2® and their associated messages are stored within the coupling facility.
DEFINE QLOCAL(PAYROLL) QSGDISP(SHARED) REPLACE PUT(ENABLED) GET(ENABLED) + CFSTRUCT(APPLICATION1) + DESCR('Shared queue for payroll details') DEFINE QLOCAL(QM3) QSGDISP(SHARED) REPLACE USAGE(XMITQ) PUT(ENABLED) + CFSTRUCT(APPLICATION1) + DESCR('Transmission queue to QM3') TRIGGER TRIGTYPE(FIRST) + TRIGDATA(QSG1.TO.QM3) GET(ENABLED) INITQ(SYSTEM.CHANNEL.INITQ)
Group objects
The group object definitions are stored in Db2, and each queue manager in the queue sharing group creates a local copy of the defined object.
Sender channel definition for a TCP/IP connection:
DEFINE CHANNEL(QSG1.TO.QM3) CHLTYPE(SDR) QSGDISP(GROUP) TRPTYPE(TCP) + REPLACE DESCR('Sender channel to QM3') XMITQ(QM3) + CONNAME('192.0.2.0(1411)')Sender channel definition for an LU 6.2 connection:
DEFINE CHANNEL(QSG1.TO.QM3) CHLTYPE(SDR) QSGDISP(GROUP) TRPTYPE(LU62) + REPLACE DESCR('Sender channel to QM3') XMITQ(QM3) + CONNAME('LUNAME1')Receiver channel definition for a TCP/IP connection:
DEFINE CHANNEL(QM3.TO.QSG1) CHLTYPE(RCVR) TRPTYPE(TCP) + REPLACE DESCR('Receiver channel from QM3') QSGDISP(GROUP)Receiver channel definition for an LU 6.2 connection:
DEFINE CHANNEL(QM3.TO.QSG1) CHLTYPE(RCVR) TRPTYPE(LU62) + REPLACE DESCR('Receiver channel from QM3') QSGDISP(GROUP)