Hi Camel folks,
I have the following route configuration
from("activemq:q1").
transacted().
...
.inOnly("activemq:q2").
.inOnly("custom:storeMonitoringInformation")
The goal of the second .inOnly ("custom:storeMonitoringInformation") is
to store some monitoring information about the message after it was been
enqueued in q2. However, in case that the transaction commit fails
(i.e., the message could not be inserted in q2), the monitoring entry is
stored anyway.
What is the recommended solution to deal with this issue - i.e., to wait
for a successful transaction commit before continuing with the route.
Thanks and best regards,
Marco