Building the server environment for AIX (64-bit)
How to build the server environment for IBM MQ for AIX (64-bit).
Procedure
- 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 represents the root directory for TUXEDO, and MQ_INSTALLATION_PATH represents the high-level directory in which IBM MQ is installed.:
$ export CFLAGS="-I MQ_INSTALLATION_PATH/inc -I /APPDIR -L MQ_INSTALLATION_PATH/lib64" $ export LDOPTS="-lmqm" $ export FIELDTBLS= MQ_INSTALLATION_PATH/samp/amqstxvx.flds $ export VIEWFILES=/APPDIR/amqstxvx.V $ export LIBPATH=$TUXDIR/lib64: MQ_INSTALLATION_PATH/lib64:/lib64- Add the following line to the TUXEDO file udataobj/RM:
MQSeries_XA_RMI:MQRMIXASwitchDynamic: -lmqmxa64 -lmqm- Run the commands:
$ mkfldhdr MQ_INSTALLATION_PATH/samp/amqstxvx.flds $ viewc MQ_INSTALLATION_PATH/samp/amqstxvx.v $ buildtms -o MQXA -r MQSeries_XA_RMI $ buildserver -o MQSERV1 -f MQ_INSTALLATION_PATH/samp/amqstxsx.c \ -f MQ_INSTALLATION_PATH/lib64/libmqm.a \ -r MQSeries_XA_RMI -s MPUT1:MPUT \ -s MGET1:MGET \ -v -bshm $ buildserver -o MQSERV2 -f MQ_INSTALLATION_PATH/samp/amqstxsx.c \ -f MQ_INSTALLATION_PATH/lib64/libmqm.a \ -r MQSeries_XA_RMI -s MPUT2:MPUT -s MGET2:MGET \ -v -bshm $ buildclient -o doputs -f MQ_INSTALLATION_PATH/samp/amqstxpx.c \ -f MQ_INSTALLATION_PATH/lib64/libmqm.a $ buildclient -o dogets -f MQ_INSTALLATION_PATH/samp/amqstxgx.c \ -f MQ_INSTALLATION_PATH/lib64/libmqm.a- Edit ubbstxcx.cfg and add details of the machine name, working directories, and queue manager as necessary:
$ tmloadcf -y MQ_INSTALLATION_PATH/samp/ubbstxcx.cfg- Create the TLOGDEVICE:
$tmadmin -cA prompt is displayed. At this prompt, enter:> crdl -z /APPDIR/TLOG1- Start the queue manager:
$ strmqm- Start Tuxedo:
$ tmboot -y
What to do next
We can now use the doputs and dogets programs to put messages to a queue and retrieve them from a queue.