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 is not called 'APPLICATION1', you must use your own coupling facility list structure name for the example.
The shared object definitions are stored in DB2(R) 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)
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.
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('9.20.9.31(1411)')
For an LU6.2 connection:
DEFINE CHANNEL(QSG1.TO.QM3) CHLTYPE(SDR) QSGDISP(GROUP) TRPTYPE(LU62) + REPLACE DESCR('Sender channel to QM3') XMITQ(QM3) + CONNAME('LUNAME1')
For a TCP/IP connection:
DEFINE CHANNEL(QM3.TO.QSG1) CHLTYPE(RCVR) TRPTYPE(TCP) + REPLACE DESCR('Receiver channel from QM3') QSGDISP(GROUP)
For an LU 6.2 connection:
DEFINE CHANNEL(QM3.TO.QSG1) CHLTYPE(RCVR) TRPTYPE(LU62) + REPLACE DESCR('Receiver channel from QM3') QSGDISP(GROUP)
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzae10198 |