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.
About this task
This example covers setting up cross platform communication from
IBM MQ on
Windows to
the following platforms:
Procedure
-
Establish a network connection using LU6.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
- Establish a network connection using NetBIOS.
- 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.
- 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
- 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.
- 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.
- At the receiving end, define the corresponding receiver channel.
For
example:
DEFINE CHANNEL (WINNT.OS2.NET) CHLTYPE(RCVR) +
TRPTYPE(NETBIOS) +
REPLACE
- Start the channel initiator.
Each new channel is started as a thread rather
than as a new process:
runmqchi
- 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.
- Complete the configuration now that the network connection is established. See Configuring the channels on Windows.