Yeah we fixed this recently so the loop will break out sooner now. Will be in the next release.
On Thu, Jul 30, 2015 at 2:17 PM, clinton <clint.pe...@ionep.com> wrote: > I'm using Spring DSL > I coded a "loop", to handle a retry situation. > Once the function is complete, I wanted to break out, so I setup an > exception, which I "threw" from within the loop, thinking that would break > me out. > I'm getting results I can't really interpret. I appears that somehow the > loop, or parts thereof continue to execute until the loop count is > exhausted, and THEN control transfers to the doCatch for the exception. > Does this approach just not work?? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Throwing-exception-in-a-loop-tp5770104.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2nd edition: http://www.manning.com/ibsen2