2.4.4 Using MQ Client-Only Package
A new library libtuxmq_c*
is provided for supporting IBM MQ client-only
installation on Tuxedo MQ Adapter. When building Tuxedo MQ Adapter, you can use an additional
option "-c" to link related libtuxmq_c*
and MQ client libraries. See the
following code snippet illustrates the Command Line Building Methods for several building
examples.
buildmqadapter -c
buildTM_MQI -c -o $TUXDIR/bin/TM_MQI
buildTM_MQO -c -o $TUXDIR/bin/TM_MQO
buildTMQUEUE_MQM -c -o $TUXDIR/bin/ TMQUEUE_MQM
In addition, you need to change the $TUXDIR/udataobj/RM
to build MQ Adapter
with MQ client library. For example, on Solaris (64-bit) platform, do the following
configuration:
MQSeriesXA_RMI:MQRMIXASwitchDynamic: /opt/mqm/lib64/libmqcxa64.so /opt/mqm/lib64/libmqic.so
You can also use the -t
and -c
options of
buildmqadapter
and buildTM_MQI
commands together to generate
multi-threaded TM_MQI with MQ client library. In this case, you need to change the
$TUXDIR/udataobj/RM
configuration to make sure the RM file is linking to
necessary multi-threaded libraries. For example, on Solaris (64-bit) platform, do the following
configuration:
MQSeries_XA_RMI:MQRMIXASwitchDynamic: /opt/mqm/lib64/libmqcxa64_r.so /opt/mqm/lib64/libmqic_r.so
To use client package, you also need to configure the UBBCONFIG
file. In
*GROUPS section, change the OPENINFO
of the group used for MQ Adapter to:
OPENINFO="MQSeries_XA_RMI:channel=<YOUR_CHANNEL_NAME>,AXLIB=<PATH_TO_LIBTUX.SO>,trptype=TCP,conname=<MQ_SERVER_IPADDRESS(PORT)>,qmname=<Q_MANAGER_NAME>,tpm=TUXEDO"
For example:
GROUP2
LMID=simple GRPNO=2 TMSNAME=TMS_MQ OPENINFO="MQSeries_XA_RMI:qmname=SIMPLE.QMANAGER,channel=CHANNEL1,trptype=TCP,AXLIB=/opt/tuxedo12.1.1.0/lib/libtux.so,conname=10.10.10.2(1414),tpm=Tuxedo"
Parent topic: Building the Oracle Tuxedo MQ Adapter Servers