TransactionErrorHandler does not move message to ActiveMQ.DLQ

Solution Verified - Updated -

Issue

  • TransactionErrorHandler does not move message to ActiveMQ.DLQ after redelivering 6 times. When the route is in transaction and there is ConnectionException or UnknownHostNameException, it should redeliver 6 times and move the message to ActiveMQ.DLQ instead of losing messages.

  • If we run the test using this command: mvn -Dtest=MyTest test then it will have the correct behavior (Got ConnectException, redelivered 6 times and it will eventually moved to ActiveMQ.DLQ) and the message is not lost.

  • However, when we run it using mvn camel:run, then send message to the activemq inbox. It will get ConnectException, redelivered 6 times and the message is lost. It does NOT go to ActiveMQ.dlq
    The same thing when we run it on JBoss Fuse.

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Apache Camel

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