![]() |
![]() |
![]() |
![]() |
![]() |
• Object files for the Oracle Tuxedo MQ Adapter are included as part of the standard Oracle Tuxedo distribution. After customizing the $TUXDIR/udataobj/RM file with any values specific to the MQ installation being used, the Oracle Tuxedo administrator uses the buildmqadapter(1) command to build the MQ adapter executables. The Oracle Tuxedo administrator also needs to use the buildtms(1) command to build the TMS for the WebSphere MQ Resource manager. This chapter describes the process of building the MQ Adapter executables.
• The Oracle Tuxedo installation program attempts to add a sensible default line for WebSphere MQ 6.0 to the $TUXDIR/udataobj/RM file when installing Oracle Tuxedo. For example, on 32-bit Solaris, the installation program adds the following lines:On Windows NT, there is no standard installation location for WebSphere MQ, so the variable %MQMDIR% is used in the %TUXDIR%\udataobj\RM file. This variable should be set before building the MQ Adapter servers.To build the MQ adapter servers, execute the following commands as the Oracle Tuxedo administrator with write permission in the $TUXDIR/bin directory:This command will install the TM_MQI, TM_MQO, and TMQUEUE_MQM servers in the $TUXDIR/bin directory. The -v option indicates that buildmqadapter will write the buildserver and compiler command lines used to link the 3 servers as part of its output.Run the following command while in the $TUXDIR/bin directory to create the resource manager executable:
Note: You must use the buildtms command to build the TMS Server.Add the following lines to the *GROUPS section of the UBBCONFIG file for the group used for the MQ Adapter for Oracle Tuxedo servers.In the above example, MQ_GROUP_NAME is the name of the group in which the MQ adapter servers are defined. Your application may use whatever name it wants for this group. The number of TMS servers in this group is 3. BEA.TEST.MANAGER is the name of the queue manager being used, and another name should be substituted if your queue manager is named something else.The single-threaded TM_MQI configuration and behavior remain the same as earlier releases. To build the single-threaded TM_MQI, neither $TUXDIR/udataobj/RM nor buildmqadapter and buildTM_MQI command line options need to be changed.For multi-threaded TM_MQI, we provide special configuration for the command line options as well as the RM file. In the command line, an additional option "-t" is added for buildmqadapter and buildTM_MQI, to generate new multi-threaded TM_MQI. You can build multi-threaded TM_MQI using one of the following commands:You need to change the $TUXDIR/udataobj/RM file by adding the link to MQ threaded library. For example, on Solaris (32-bit), the configuration is: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 Listing 2‑1 for several building examples.Listing 2‑1 Command Line Building MethodsIn 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: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: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: