WebSphere Message Brokers
File: ac00920_
Writer: Karen Cameron

Task topic

This build: July 31, 2007 21:17:00

Configuring global coordination with Sybase using a 32-bit queue manager

To globally coordinate message flow transactions with updates in Sybase databases, configure the broker environment. This topic describes how to configure the broker environment when the broker uses a 32-bit queue manager.

Before you start:

All WebSphere MQ Version 6 queue managers on 32-bit platforms are 32-bit. 32-bit queue managers can coordinate transactions only in 32-bit mode and can coordinate only message flows that are deployed to 32-bit execution groups.

To configure your broker environment for global coordination using a 32-bit queue manager as the transaction manager with the DataDireret V5.0 drivers:

  1. on Linuxand UNIX run the mqsimanagexalinks command
  2. Configure the broker's queue manager with XA Resource Manager information for each database that is involved in the transaction that the queue manager will globally coordinate. If the message flows reference message dictionaries or contain Publication nodes, you must use the same method to define XA Resource Manager information for the broker database as well as for the user databases.

    On Linux (x86 platform) and UNIX:

    1. Open the queue manager's qm.ini file in a text editor. The qm.ini file is located at /var/mqm/qmgrs/queue_manager_name/qm.ini, where queue_manager_name is the name of the broker that is associated with the queue manager.
    2. At the end of the qm.ini file, paste the following stanza:
      XAResourceManager:
          Name=SYBASEXA
          SwitchFile=UKasedtc20.so
          XAOpenString=-NSYBASEDB -AMyServerName,MyPortNumber -Uuid -Ppwd -K2
          XACloseString=
          ThreadOfControl=THREAD
    3. The switch file is supplied by WebSphere Message Broker
    4. On the XAOpenString line, replace the following values with values that are appropriate for your configuration:
      • MyServerName is the name of the TCP/IP host on which the Sybase ASE server resides.
      • MyPortNumber is the TCP/IP port on which the Sybase ASE server is listening.
      • uid must be the user name that is used by the broker to connect to the database. The user name was defined using the -u flag on the mqsicreatebroker command when creating the broker. If the -u parameter was not specified, the data source user name is the same as the broker's service user name, which was defined using the -i flag on the mqsicreatebroker command.
      • pwd is the password associated with the user name.
    5. Accept the default values for all the other lines in the stanza. For example, on AIX:
      XAResourceManager:
          Name=SYBASEXA
          SwitchFile=/opt/mqsi/merant/lib/UKasedtc20.so
          XAOpenString=-NSYBASEDB -Adiaz,1521 -Uwbrkuid -Pwbrkpw -K2
          XACloseString=
          ThreadOfControl=THREAD
    On Windows:
    1. From the Start menu, open the graphical administration tool for your version of WebSphere MQ:
      • WebSphere MQ Version 5.3: WebSphere MQ Services
      • WebSphere MQ Version 6: WebSphere MQ Explorer
    2. Open the queue manager's Properties dialog, then open the Resources (Version 5.3) or XA resource managers (Version 6) page.
    3. In the SwitchFile field, enter the full path to the switch file, as shown in the following example where install_dir is the location in which the broker is installed:
      install_dir\bin\UKase20.dll
    4. In the XAOpenString field, paste the following string:
      -NSYBASEDB -AMyServerName,MyPortNumber -WWinsock -Uuid -Ppwd -K2
    5. In the XAOpenString field, replace the values as appropriate for your configuration:
      • install_dir is the location in which the broker is installed.
      • MyServerName is the name of the TCP/IP host on which the Sybase ASE server resides.
      • MyPortNumber is the TCP/IP port on which the Sybase ASE server is listening.
      • uid must be the user name that is used by the broker to connect to the database. The user name was defined using the -u flag on the mqsicreatebroker command when creating the broker. If the -u parameter was not specified, the data source user name is the same as the broker's service user name, which was defined using the -i flag on the mqsicreatebroker command.
      • pwd is the password associated with the user name.
      For example:
      -NSYBASEDB -Adiaz,1521 -WWinsock -Uwbrkuid -Pwbrkpw -K2
    6. Accept the default values for all the other fields on the page.
  3. Stop then restart the queue manager to apply the changes because qm.ini is read only when the queue manager starts.
    To stop then restart the queue manager, enter the following commands, where queue_manager_name is the name of the queue manager:
    endmqm queue_manager_name
    strmqm queue_manager_name

    When the queue manager restarts, check the queue manager's log for any warnings that are associated with the restart. The log files are located in /var/mqm/qmgrs/queue_manager_name/errors, where queue_manager_name is the name of the queue manager that you restarted.

    When the queue manager restarts successfully, the changes that you made to qm.ini are applied.
Sybase is now configured for global coordination with a 32-bit queue manager coordinating transactions.
Now, you can deploy globally coordinated message flows to the broker.
Related tasks
Configuring globally coordinated message flows
Configuring global coordination of transactions (two-phase commit)
Related reference
Supported databases
mqsicreatebroker command - Windows, Linux, and UNIX systems
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:17:00

ac00920_ This topic's URL is: