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.  Dead-letter queue

    Posted 10/24/17 07:23 PM

    How do I implement a dead-letter queue on the queue manager using IBM MQ V8? 



  • 2.  RE: Dead-letter queue

    Posted 10/24/17 09:10 PM

    First you need to have a queue to use as your dead-letter queue. This is just a normal local queue. Some platforms provide you with the SYSTEM.DEAD.LETTER.QUEUE, but I prefer to avoid using a system queue (and also it's not pre-defined on all platforms). My queue manager MQG1 has a queue defined thus:-

    DEFINE QLOCAL(MQG1.DEAD.LETTER.QUEUE) DESCR('Dead-letter queue')

    Then you have to tell the queue manager to use said queue. You can do this with the following command.

    ALTER QMGR DEADQ(MQG1.DEAD.LETTER.QUEUE)

    Then you need to make sure you have something monitoring that queue, like a dead-letter handler, or at a very minimum, something that will alert you if you get a non-zero depth on the queue.

    You can read about the dead-letter handler here.

    This is no different on IBM MQ V8 than other versions. You can additionally on V8 configure channels individually to use the above queue with the attribute USEDLQ(YES | NO). But you first have to do the above.

    Let me know if that doesn't answer your question.

    Cheers,
    Morag



  • 3.  RE: Dead-letter queue

    Posted 10/25/17 12:27 PM

    I appreciate your response, Morag! This is extremely helpful for me.