crtmqm -q -d SERVER.TO.HOST -u SYSTEM.DEAD.LETTER.QUEUE QMS
where SERVER.TO.HOST is the default transmission queue, and QMS is the name of the queue manager (which must be the same as the QMgrName parameter in the service definition).
strmqm QMS
strmqcsv QMS
Runmqsc< c:\mqm\setup\server.tst >c:\mqm\setup\server.out
The file c:\mqm\setup\server.tst must contain the information shown as follows.
DEFINE QREMOTE('QS1') REPLACE + RNAME('QH1') + RQMNAME(QMH) + XMITQ(SERVER.TO.HOST) + DESCR('Messages for host') DEFINE QLOCAL(SERVER.TO.HOST) REPLACE + USAGE(xmitq) + DESCR('Xmit queue to host') DEFINE CHANNEL(SERVER.TO.HOST) + CHLTYPE(sdr) REPLACE + TRPTYPE(tcp) CONNAME(your IP address) + XMITQ(SERVER.TO.HOST) + DESCR('Sender channel from server to host')
DEFINE QLOCAL('QS2') REPLACE + DESCR('Messages from host') DEFINE CHANNEL(HOST.TO.SERVER) + CHLTYPE(rqstr) REPLACE + CONNAME(your IP address) + TRPTYPE(tcp) + DESCR('Receiver channel from host to server')
where QS1 is the service definition parameter sendToQ, and QS2 is the service definition parameter replyToQ.
DEFINE QLOCAL('CHANNELQ') REPLACE + DESCR('Replies from host')
where CHANNELQ is the queue added to receive replies from the host that are related to channel queries.
DEFINE CHANNEL(CLIENT.TO.SERVER.CH) + CHLTYPE(svrconn) REPLACE + TRPTYPE(tcp) + DESCR('Server connection to client')