How to send message to DLQ upon exhausted redeliveries in activemq

Solution Unverified - Updated -

Issue

  • Advise what config i need to define to allow test messages that have exhausted a redlivery policy to be forwarded to a DQL rather than being discarded. Ideally i would like to define the DLQ to forward to and ideally i would like to define this on the connection (rather than in the broker config) but i am happy to defer to the broker's default DLQ handling if necessary. Can such configuration be done on the defined JMS connection factory.

  • Is there any changes needed in the "activemq.xml" of the server Or it can be configured via the route (spring based or src/main/resources/OSGI-INF/blueprint/blueprint.xml) that is defined. Can it be logged when the message was discarded.

  • Large numbers of messages being sent to DLQ, however there are no application errors in any logs to explain these

Environment

  • Red Hat JBoss A-MQ
    • 6.x
  • Red Hat JBoss Fuse
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content