camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: @Consumed exchange argument does not contain exceptions
Date Thu, 07 Jul 2016 11:28:25 GMT
See this FAQ
http://camel.apache.org/why-is-the-exception-null-when-i-use-onexception.html

On Thu, Jul 7, 2016 at 1:11 PM, Alberto <abrosich@inogs.it> wrote:
>
> Hello,
>
> I need to set a field in a JPA entity only if there are not exceptions.
> I use @Consumed annotation. The method is always called and, in case of
> exception during routing, the exchange parameter does not contain any
> exception and isFailed() method is always false.
>
> Is it a "normal" behaviour?
>
> How can I handle this situation?
>
> Regards
>
> Alberto



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message