Hi Jim,
Please check if the listener process is running by running the command : ps -ef | grep -i runmqlsr ,
bash-4.2$ ps -ef | grep -i runmqlsr
mqm 29184 29025 0 21:38 ? 00:00:00 /opt/mqm/bin/runmqlsr -r -m QM1 -t TCP -p 9414
mqm 29206 28907 0 21:38 pts/0 00:00:00 grep -i runmqlsr
You will find the process if listener is running.
AMQ8730W: Listener already active - you will get only when listener is already running on the same port.
See the runmqsc output:
DEFINE LISTENER('MY.LISTENER.TCP') TRPTYPE(TCP) PORT(9414) CONTROL(QMGR) REPLACE
2 : DEFINE LISTENER('MY.LISTENER.TCP') TRPTYPE(TCP) PORT(9414) CONTROL(QMGR) REPLACE
AMQ8626I: IBM MQ listener created.
START LISTENER('MY.LISTENER.TCP')
3 : START LISTENER('MY.LISTENER.TCP')
AMQ8021I: Request to start IBM MQ listener accepted.
end
If I issue the same commands again in runmqsc , you might get
START LISTENER('MY.LISTENER.TCP')
AMQ8730W: Listener already active.
Thanks & Regards,
Prema U. L.
Release Effectiveness MQ Team, India Software Lab,
IBM India Pvt. Ltd., 6th Floor, Block C,
EGL, Bangalore - 560071
------------------------------
Prema Laxmanachar
------------------------------
Original Message:
Sent: Wed December 01, 2021 03:23 PM
From: Jim Creasman
Subject: Defining and starting MQ listeners
I'm seeing some confusing behavior when I define and start a listener for port 9414. I define the listener as follows in my runmqsc file:
DEFINE LISTENER('MY.LISTENER.TCP') TRPTYPE(TCP) PORT(9414) CONTROL(QMGR) REPLACE
My understanding from the docs is that CONTROL(QMGR) means the listener is automatically started and stopped along with the qmgr. However, when the server starts I find that the listener is not running even though the qmgr is started. No problem, I'll just add the START command to the command file, like this:
DEFINE LISTENER('MY.LISTENER.TCP') TRPTYPE(TCP) PORT(9414) CONTROL(QMGR) REPLACE
START LISTENER('MY.LISTENER.TCP')
Now, I get a warning following the START command:
AMQ8730W: Listener already active.
What am I missing? I need the listener to be started once the runmqsc command completes (preferably w/o the warning).
Thanks,
Jim
------------------------------
Jim Creasman
------------------------------