Sample script to create a client

This script only shows the basic MQe_Script commands to save duplication. Control structures could be placed around the commands or they could be run as is.

For this script to run successfully, the queue manager created by the gateway script must be running as must the MQ queue manager.
set CLIENT client1 
set PATH "C:\\MQeScript\\client" 
set ADDRESS 127.0.0.1 
set GATEWAYQM gatewayqm 
set PORT 1881 
set BRIDGEQ bridgeq 
set BRIDGEQNUM 1 
set REALBRIDGENAME mqlocalq 
set MQNAME QM_jane  

mqe_script_qm –create –qmname $CLIENT –qmpath $PATH

mqe_script_qm –load

mqe_script_condef –create –cdname $GATEWAYQM –port $PORT –address $ADDRESS

mqe_script_condef –create –cdname $MQNAME –viaqmname $GATEWAYQM

mqe_script_sproxyq –create –qname $BRIDGEQ$BRIDGEQNUM –destination $MQNAME –alias $REALBRIDGENAME

mqe_script_msg –put –qname $REALBRIDGENAME –qmname $MQNAME 

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.