To build the server environment for WebSphere MQ for AIX:

 

  1. Create a directory (for example, <APPDIR>) in which the server environment is built and execute all commands in this directory.

  2. Export the following environment variables, where TUXDIR is the root directory for TUXEDO:
           $ export CFLAGS=“-I ⁄usr⁄mqm⁄inc -I /<APPDIR> -L /usr⁄mqm⁄lib”
           $ export LDOPTS=“-lmqm -lmqmcs”
           $ export FIELDTBLS=/usr/mqm/samp/amqstxvx.flds
           $ export VIEWFILES=/<APPDIR>/amqstxvx.V
           $ export LIBPATH=$TUXDIR⁄lib:⁄usr⁄mqm⁄lib:⁄lib

  3. Add the following to the TUXEDO file udataobj/RM
           MQSeries_XA_RMI:MQRMIXASwitchDynamic: -lmqmxa -lmqm -lmqmcs   

  4. Run the commands:
           $ mkfldhdr    /usr/mqm/samp/amqstxvx.flds
           $ viewc       /usr/mqm/samp/amqstxvx.v
           $ buildtms    -o MQXA -r MQSeries_XA_RMI
           $ buildserver -o MQSERV1 -f /usr/mqm/samp/amqstxsx.c \
                  -f /usr/mqm/lib/libmqm.a \
                  -r MQSeries_XA_RMI -s MPUT1:MPUT \
                  -s MGET1:MGET \
                  -v -bshm
           $ buildserver -o MQSERV2 -f /usr/mqm/samp/amqstxsx.c \
                  -f /usr/mqm/lib/libmqm.a \
                  -r MQSeries_XA_RMI -s MPUT2:MPUT
                  -s MGET2:MGET \
                  -v -bshm
           $ buildclient -o doputs  -f /usr/mqm/samp/amqstxpx.c \
                  -f /usr/mqm/lib/libmqm.a
           $ buildclient -o dogets  -f /usr/mqm/samp/amqstxgx.c \
                  -f /usr/mqm/lib/libmqm.a

  5. Edit ubbstxcx.cfg and add details of the machine name, working directories, and queue manager as necessary:
           $ tmloadcf    -y /usr/mqm/samp/ubbstxcx.cfg

  6. Create the TLOGDEVICE:
          $tmadmin -c
    A prompt then appears. At this prompt, enter:
          > crdl -z /<APPDIR>/TLOG1

  7. Start the queue manager:
           $ strmqm

  8. 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


fg17830_