Each time after I had started my queue manager with strmqm, my client program was getting
MQCONN failed with CompCode:2, Reason:2538 MQRC_HOST_NOT_AVAILABLE
This was because my listener was not started.
I got fed up with using strtmq then using runmqsc to issue START LISTENER …
I found, to get it to start when the queue manager starts, use the command
ALTER LISTENER(SYSTEM.DEFAULT.LISTENER.TCP) trptype(TCP) control(QMGR)
The doc says for control(QMGR)
The listener being defined is to be started and stopped at the same time as the queue manager is started and stopped.
The default is Manual!
Easy when you know how!
Works on all platforms that have LISTENER objects (i.e. all but z/OS). On z/OS you can put the START command in CSQINP2.
LikeLike