Home
Channel listener
Run a channel listener program on each queue manager. A channel listener program ‘listens’ for incoming network requests and starts the appropriate receiver channel when it is needed.
The implementation of channel listeners is platform specific, however there are some common features. On all WebSphere MQ platforms, the listener may be started using the MQSC command START LISTENER. On WebSphere MQ for iSeries, Windows systems and UNIX systems, we can make the listener start automatically with the queue manager by setting the CONTROL attribute of the LISTENER object to QMGR or STARTONLY. Platform-specific details follow:
- WebSphere MQ for z/OS
- Use the channel listener program provided by WebSphere MQ. To start a WebSphere MQ channel listener, use the MQSC command START LISTENER, which you issue as part of your channel initiator startup. For example:
START LISTENER PORT(1414) TRPTYPE(TCP)...or...
START LISTENER LUNAME(LONDON.LUNAME) TRPTYPE(LU62)As well as a listener for each queue manager, members of a queue-sharing group can make use of a shared listener. Do not use shared listeners in conjunction with clusters. If you do, queue managers might receive messages pertaining to queues for which they do not have a CLUSRCVR definition.
- WebSphere MQ for iSeries
- Use the channel listener program provided by WebSphere MQ. To start a WebSphere MQ channel listener use the CL command STRMQMLSR. For example:
STRMQMLSR MQMNAME(QM1) PORT(1414)- WebSphere MQ for Windows
- Use either the channel listener program provided by WebSphere MQ, or the facilities provided by the operating system.
To start the WebSphere MQ channel listener use the RUNMQLSR command. For example:
RUNMQLSR -t tcp -p 1414 -m QM1- WebSphere MQ on UNIX systems
- Use either the channel listener program provided by WebSphere MQ, or the facilities provided by the operating system (for example, inetd for TCP communications).
To start the WebSphere MQ channel listener use the runmqlsr command. For example:
runmqlsr -t tcp -p 1414 -m QM1To use inetd to start channels, configure two files:
- Edit the file /etc/services. (To do this be logged in as a superuser or root.) If you do not have the following line in that file, add it as shown:
MQSeries 1414/tcp # Websphere MQ channel listenerwhere 1414 is the port number required by WebSphere MQ. We can change this, but it must match the port number specified at the sending end.- Edit the file /etc/inetd.conf. If you do not have the following line in that file, add it as shown:
For AIX:
MQSeries stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta -m queue.manager.nameFor Compaq Tru64 UNIX , HP-UX, Solaris and Linux:
MQSeries stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta -m queue.manager.name
The updates become active after inetd has reread the configuration files. Issue the following commands from the root user ID:
On AIX:
refresh -s inetdOn HP-UX:
inetd -cOn Compaq Tru64 UNIX, Solaris or Linux:
- Find the process ID of the inetd with the command:
ps -ef | grep inetd- Run the command:
kill -1 inetd processid
- MQSeries for Compaq NonStop Kernel
- Use either the channel listener program provided by MQSeries (runmqlsr), or the PATHCOM command.
To start the channel listener using the runmqlsr command, use a command of the form:
runmqlsr -t tcp -p 1414 -m QM1For more information, see MQSeries for Compaq NonStop Kernel System Administration.To start the channel listener using PATHCOM, use a command of the form:
START SERVER MQS-TCPLISxx- MQSeries for Compaq OpenVMS Alpha
- For information on setting up communications, see WebSphere MQ Intercommunications.
Parent topic:
Establishing communication in a clusterHome