Using MQSeries with NonStop Tuxedo 6.5.3
MQMACHINIFILE and MQDEFAULTPREFIX
ubbsimple:
*MACHINES’ pmid, GSUBVOL, APPDIR, TUXCONFIG, ENVFILE, mqsgetserv and
mqsputserv’s CLOPT (i.e., the queue name and queue manager’s name)
Load the environment file:
. ./mqs_simpapp_env
7.
Load the tuxconfig file:
tmloadcf ubbsimple
8.
Boot the application:9.
tmboot -y
Using the clients and servers
The make file builds several MQSeries sample programs: amqsgbr, amqsget, and amqsput that
can be used as normal. For example, "amqsgbr SYSTEM.DEFAULT.LOCAL.QUEUE
QMNAME" can be used to list the messages on the queue. The following sections describe only
the new clients and servers included in this sample application along with how to test them.
mqscl
mqscl basically merges amqsgbr with simpcl. That is, given the same input as amqsgbr, it will
use the NonStop TUXEDO service TOUPPER to up shift and output each message on the
queue. To test mqscl do:
amqsput SYSTEM.DEFAULT.LOCAL.QUEUE QMNAME
>msg #1
>msg #2
>Ctrl-Y
where the ">" indicates that amqsput is asking for input from stdin
Once the messages are added to the queue do:
mqscl SYSTEM.DEFAULT.LOCAL.QUEUE QMNAME
To remove the messages from the queue do:
amqsget SYSTEM.DEFAULT.LOCAL.QUEUE QMNAME