TransactionErrorHandler does not move message to ActiveMQ.DLQ
Issue
-
TransactionErrorHandlerdoes not move message to ActiveMQ.DLQ after redelivering 6 times. When the route is in transaction and there isConnectionExceptionorUnknownHostNameException, 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 testthen 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 getConnectException, 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
