行内前置机:
#!/bin/sh
crtmqm -lc -lf 4096 -lp 2 -ls 1 -q YWJZZF_CZCB_SEND
strmqm YWJZZF_CZCB_SEND
runmqsc YWJZZF_CZCB_SEND<<EOF
****MQ脚本开始
alter qmgr CCSID(1381)
define channel(CHANNEL1) chltype(SVRCONN) TRPTYPE(TCP) mcauser('mqm')
****本地客户端程序用的通道,视情况而定
def ql(deadq) defpsist(yes) maxdepth(20000) replace
def ql(ERRMSG) defpsist(yes) maxdepth(20000) replace
alter qmgr deadq(deadq)
def ql(CZ_RSP) maxdepth(100000) defpsist(yes) maxmsgl(1048576) replace
def qr(YH_REQ) rname(YH_REQ) rqmname(YWJZZF_RECV) xmitq(SEND000) defpsist(yes) replace
def ql(SEND000) usage(xmitq) defpsist(yes) maxdepth(100000) maxmsgl(1048576) trigger trigtype(first) trigdata(YH_CZ) initq(system.channel.initq) replace
def chl(YH_CZ) chltype(sdr) discint(1800) conname('10.130.130.241(1415)') xmitq(SEND000) trptype(tcp) +
shortrty(10000) shorttmr(30) longtmr(300) longrty(999999999) batchsz(50) replace
****172.22.22.2需替换为财政的前置IP地址
def chl(CZ_YH) chltype(rcvr) trptype(tcp) replace
def listener(YHLS) TRPTYPE(TCP) PORT(5015) CONTROL(STARTONLY) BACKLOG(0) replace
start listener(YHLS)
end
****MQ脚本结束
EOF > YWJZZF_CZCB_SEND.log
def qr(YH_REQ) rname(YH_REQ) rqmname(YWJZZF_RECV) xmitq(SEND000) defpsist(yes) replace
远程队列名字:qr(YH_REQ)
仿真本地队列:rname(YH_REQ)
仿真队列管理器名字: rqmname(YWJZZF_RECV)
所要用的传输队列 : xmitq(SEND000)
def ql(SEND000) usage(xmitq) defpsist(yes) maxdepth(100000) maxmsgl(1048576) trigger trigtype(first) trigdata(YH_CZ) initq(system.channel.initq) replace
##########################################################################################################################################################
仿真:
crtmqm -lc -lf 4096 -lp 2 -ls 1 -q YWZJJF_RECV
strmqm YWZJJF_RECV
runmqsc YWZJJF_RECV<<EOF
****MQ脚本开始
alter qmgr CCSID(1381)
define channel(CHANNEL1) chltype(SVRCONN) TRPTYPE(TCP) mcauser('mqm')
****本地客户端程序用的通道,视情况而定
def ql(deadq) defpsist(yes) maxdepth(20000) replace
def ql(ERRMSG) defpsist(yes) maxdepth(20000) replace
alter qmgr deadq(deadq)
def ql(YH_REQ) maxdepth(100000) defpsist(yes) maxmsgl(1048576) replace
def qr(CZ_RSP) rname(CZ_RSP) rqmname(YWJZZF_CZCB_SEND ) xmitq(SEND000) defpsist(yes) replace
def ql(SEND000) usage(xmitq) defpsist(yes) maxdepth(100000) maxmsgl(1048576) +
trigger trigtype(first) trigdata(CZ_YH) initq(system.channel.initq) replace
def chl(CZ_YH) chltype(sdr) discint(1800) conname('10.130.128.59(1415)') xmitq(SEND000) trptype(tcp) +
shortrty(10000) shorttmr(30) longtmr(300) longrty(999999999) batchsz(50) replace
****172.22.22.2需替换为银行的前置IP地址
def chl(YH_CZ) chltype(rcvr) trptype(tcp) replace
def listener(CZLS) TRPTYPE(TCP) PORT(1415) CONTROL(STARTONLY) BACKLOG(0) replace
start listener(CZLS)
end
****MQ脚本结束
EOF > YWZJJF_RECV.log