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 #:
4 of 4
Last update:
‎09-29-2018 12:12 AM
Updated by:
 
Labels (3)