MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  MQ Listener 

    Posted 07/17/17 07:24 PM

    I've created MQ listener for a queue manager runningon AIX and need to understand what to do to start/stop the listener.



  • 2.  RE: MQ Listener 

    Posted 07/17/17 07:50 PM

    You've created a listener, perhaps with a command something like this:-

    DEFINE LISTENER(TCP.LSTR) TRPTYPE(TCP) PORT(1501) CONTROL(QMGR)

    and now you need to start it. You can start it with a command like this:-

    START LISTENER(TCP.LSTR)

    Note that the name you used on the define command is the same you now pass in on the start command

    To stop it again is very similar. Use the following command:-

    STOP LISTENER(TCP.LSTR)

    If you defined it with the attribute CONTROL set to QMGR, then it will be started and stopped as the queue manager does. Except for the first time. Because the queue manager is already running, you need to issue the start command to get it going (or recycle the queue manager - but since there is a start command, that seems overkill).

    If you didn't define it with the CONTROL attribute, but you like the sound of that, you can change the existing definition as follows:-

    ALTER LISTENER(TCP.LSTR) TRPTYPE(TCP) CONTROL(QMGR)

    Let me know if you have any questions about this.

    Cheers,
    Morag



  • 3.  RE: MQ Listener 

    Posted 07/18/17 06:40 PM

    Thank you Morag!