[Windows]

Example: setting up IBM MQ cross-platform communication on Windows

This example shows how to set up communication links from IBM® MQ on Windows to IBM MQ on another platform and establish a working channel to that platform.

Before you begin

For background information about this example and how to use it, see Example: setting up cross-platform communication for IBM MQ and How to use the cross-platform communication examples.

About this task

This example covers setting up cross platform communication from IBM MQ on Windows to the following platforms:
  • [AIX]AIX®
  • [IBM i]IBM i
  • [Linux]Linux®
  • [z/OS]z/OS®

Procedure

  1. Establish a network connection using LU6.2.

    See AnyNet® SNA over TCP/IP and Communications Server for Windows for information about configuring AnyNet SNA over TCP/IP.

  2. Establish a network connection using TCP.
    The TCP stack that is shipped with Windows systems does not include an inet daemon or equivalent.

    You must start the listener explicitly before any channels are started. It enables receiving channels to start automatically in response to a request from an inbound sending channel.

    Use the following command to start the IBM MQ TCP listener is:
    runmqlsr -t tcp
    
  3. Establish a network connection using NetBIOS.
    1. At each end of the channel, specify the local NetBIOS name to be used by the IBM MQ channel processes in the queue manager configuration file qm.ini.
      For example, the NETBIOS stanza in Windows at the sending end might look like the following:
      NETBIOS:
       LocalName=WNTNETB1
      
      and at the receiving end, look like the following:
      NETBIOS:
       LocalName=WNTNETB2
      

      Each IBM MQ process must use a different local NetBIOS name. Do not use your system name as the NetBIOS name because Windows already uses it.

    2. At each end of the channel, verify the LAN adapter number being used on your system.
      The IBM MQ for Windows default for logical adapter number 0 is NetBIOS running over an Internet Protocol network. To use native NetBIOS you must select logical adapter number 1. See Establishing the LAN adapter number.
      Specify the correct LAN adapter number in the NETBIOS stanza of the Windows registry. For example:
      NETBIOS:
       AdapterNum=1
      
    3. So that sender channel initiation works, specify the local NetBIOS name by the MQNAME environment variable:
       SET MQNAME=WNTNETB1I
      
      Note: This name must be unique.
    4. At the sending end, define a channel specifying the NetBIOS name being used at the other end of the channel.
      For example:
      DEFINE CHANNEL (WINNT.OS2.NET) CHLTYPE(SDR) +
             TRPTYPE(NETBIOS) +
             CONNAME(WNTNETB2) +
             XMITQ(OS2) +
             MCATYPE(THREAD) +
             REPLACE
      

      You must specify the option MCATYPE(THREAD) because, on Windows, sender channels must be run as threads.

    5. At the receiving end, define the corresponding receiver channel.
      For example:
      DEFINE CHANNEL (WINNT.OS2.NET) CHLTYPE(RCVR) +
             TRPTYPE(NETBIOS) +
             REPLACE
      
    6. Start the channel initiator.
      Each new channel is started as a thread rather than as a new process:
      runmqchi
      
    7. At the receiving end, start the IBM MQ listener:
      runmqlsr -t netbios
      

      Optionally you can specify values for the queue manager name, NetBIOS local name, number of sessions, number of names, and number of commands. See Defining a NetBIOS connection on Windows for more information about setting up NetBIOS connections.

  4. Complete the configuration now that the network connection is established. See Configuring the channels on Windows.