To build the server environment for WebSphere MQ for Solaris:
- 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="-I /<APPDIR>" $ export FIELDTBLS=amqstxvx.flds $ export VIEWFILES=amqstxvx.V $ export SHLIB_PATH=$TUXDIR⁄lib:⁄opt⁄mqm⁄lib:⁄lib $ export LD_LIBRARY_PATH=$TUXDIR⁄lib:⁄opt⁄mqm⁄lib:⁄lib- Add the following to the TUXEDO file udataobj/RM (RM must include /opt/mqm/lib/libmqmcs and /opt/mqm/lib/libmqmzse).
MQSeries_XA_RMI:MQRMIXASwitchDynamic: \ /opt/mqm/lib/libmqmxa.a /opt/mqm/lib/libmqm.so \ /opt/tuxedo/lib/libtux.a /opt/mqm/lib/libmqmcs.so \ /opt/mqm/lib/libmqmzse.so- Run the commands:
$ mkfldhdr amqstxvx.flds $ viewc amqstxvx.v $ buildtms -o MQXA -r MQSeries_XA_RMI $ buildserver -o MQSERV1 -f amqstxsx.c \ -f /opt/mqm/lib/libmqm.so \ -r MQSeries_XA_RMI -s MPUT1:MPUT \ -s MGET1:MGET \ -v -bshm -l -ldl $ buildserver -o MQSERV2 -f amqstxsx.c \ -f /opt/mqm/lib/libmqm.so \ -r MQSeries_XA_RMI -s MPUT2:MPUT \ -s MGET2:MGET \ -v -bshm -l -ldl $ buildclient -o doputs -f amqstxpx.c \ -f /opt/mqm/lib/libmqm.so \ -f /opt/mqm/lib/libmqmzse.co \ -f /opt/mqm/lib/libmqmcs.so $ buildclient -o dogets -f amqstxgx.c \ -f /opt/mqm/lib/libmqm.so -f /opt/mqm/lib/libmqmzse.co \ -f /opt/mqm/lib/libmqmcs.so- Edit ubbstxcx.cfg and add details of the machine name, working directories, and queue manager as necessary:
$ tmloadcf -y 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
fg17840_