camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Throwing exception in a "loop"
Date Fri, 31 Jul 2015 10:34:10 GMT
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 <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
----------------- @davsclaus
Camel in Action 2nd edition:

View raw message