2
votes

I have camel loop configured within the main route of camelContext.xml file that would invoke request processing route 3 times. I have also configured onException xml handler (set handled to true). However, when there is an exception on the first iteration the execution control goes to onException block but loop doesn't stop processing instead the other 2 iterations (2nd and 3rd) do happen too.

I would like to have loop stopped as soon as exception occurs.

Can anyone please help

Thanks in advance Ramesh

1
Post your route please, or a smaller example route to illustrate the issue - vikingsteve
What version of Camel do you use? - Claus Ibsen
Using 2.14.0 version - Ramesh Mohan Reddy

1 Answers

1
votes

Ah its a bug in Apache Camel. I have logged a ticket and have a fix for this.