TransactionErrorHandler does not move message to ActiveMQ.DLQ
Issue
-
TransactionErrorHandler
does not move message to ActiveMQ.DLQ after redelivering 6 times. When the route is in transaction and there isConnectionException
orUnknownHostNameException
, 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 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, tools, and much more.