FreeKB - IBM MQ define listener connection channel
IBM MQ - define listener connection channel

If you are not sure what a channel is, check out our Getting Started tutorial. These examples are based on Linux.

This assumes you've already created a channel, which you can verify by displaying the channel. Switch to the mqm user.

su - mqm


Start the MQSC utility for the queue manager that you want to define the listener on the server connection channel on. In this example, MANAGER01 is the name of the queue manager. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.

Define a listener for the channel.

echo "define listener(LISTENER01) trptype(TCP) control(QMGR) port(1414)" | runmqsc MANAGER01


Start the listener.

echo "start listener(LISTENER01)" | runmqsc MANAGER01


You almost always also want to assign one or more users that have access to the channel so that you don't get error 2035 MQRC_NOT_AUTHORIZED when attempting to connect to MQ.

Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter bed2f in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |