camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Camel java dsl: try/catch+stop = finally is not evaluated
Date Fri, 13 Feb 2015 09:57:56 GMT

Yes a stop is a hard stop, doFinally was intended about an exception
was thrown, but you want to call some logic.
It may further complicate routing engine if a stop is not a stop but
should continue under special use-cases.

On Fri, Feb 13, 2015 at 10:42 AM, vasilievip <> wrote:
> I'm thinking to stop execution in case of exception, but I do want to perform
> some logging in finally block. The .stop() definition looks like does what I
> need but it stops "finally" definition as well.
> Is this expected behavior? Am I missing something?
> Thanks
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message