How to use cErrorHandler to send messages to ActiveMQ queue

Question

How do I send the message caught by cErrorHandler to a real Dead Letter Queue of a Messaging provider such as ActiveMQ?

 

Answer

  1. Configure the cErrorHandler component with the Dead Letter parameter. Specify the Dead Letter URI endpoint (not the queue name), for example direct:error.

  2. Link a cDirect with URI error to a cJMS component where you specify the queue name you want to send the message to.

You can add other components between cDirect and cJMS that transform/enrich the message before sending it to the queue.

Version history
Revision #:
3 of 3
Last update:
‎10-11-2017 12:22 PM
Updated by:
 
Labels (2)
Contributors
Tags (1)