To build the server environment for WebSphere MQ for HP-UX:
- Create a directory (for example, <APPDIR>) in which the server environment is built and execute all commands in this directory.
- Export the following environment variables, where TUXDIR is the root directory for TUXEDO:
$ export CFLAGS=“-Aa -D_HPUX_SOURCE” $ export LDOPTS=“-lmqm” $ export FIELDTBLS=/opt/mqm/samp/amqstxvx.flds $ export VIEWFILES=<APPDIR>/amqstxvx.V $ export SHLIB_PATH=$TUXDIR⁄lib:⁄opt⁄mqm⁄lib:⁄lib $ export LPATH=$TUXDIR⁄lib:⁄opt⁄mqm⁄lib:⁄lib- Add the following to the TUXEDO file udataobj/RM
MQSeries_XA_RMI:MQRMIXASwitchDynamic: \ /opt/mqm/lib/libmqmxa.a /opt/mqm/lib/libmqm.sl \ /opt/tuxedo/lib/libtux.sl- Run the commands:
$ mkfldhdr /opt/mqm/samp/amqstxvx.flds $ viewc /opt/mqm/samp/amqstxvx.v $ buildtms -o MQXA -r MQSeries_XA_RMI $ buildserver -o MQSERV1 -f /opt/mqm/samp/amqstxsx.c \ -f /opt/mqm/lib/libmqm.sl \ -r MQSeries_XA_RMI -s MPUT1:MPUT \ -s MGET1:MGET \ -v -bshm $ buildserver -o MQSERV2 -f /opt/mqm/samp/amqstxsx.c \ -f /opt/mqm/lib/libmqm.sl \ -r MQSeries_XA_RMI -s MPUT2:MPUT \ -s MGET2:MGET \ -v -bshm $ buildclient -o doputs -f /opt/mqm/samp/amqstxpx.c \ -f /opt/mqm/lib/libmqm.sl $ buildclient -o dogets -f /opt/mqm/samp/amqstxgx.c \ -f /opt/mqm/lib/libmqm.sl- Edit ubbstxcx.cfg and add details of the machine name, working directories, and queue manager as necessary:
$ tmloadcf -y /opt/mqm/samp/ubbstxcx.cfg- Create the TLOGDEVICE:
$tmadmin -cA prompt then appears. At this prompt, enter:> crdl -z /<APPDIR>/TLOG1- Start the queue manager:
$ strmqm- Start Tuxedo:
$ tmboot -y
We can now use the doputs and dogets programs to put messages to a queue and retrieve them from a queue.
Parent topic:
Building the server environment
fg17850_