camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4296) Exception handlers added with RouteDefinition.adviceWith() are not applied consistently
Date Wed, 03 Aug 2011 19:46:26 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13078957#comment-13078957
] 

Claus Ibsen commented on CAMEL-4296:
------------------------------------

You should put all the stuff into the same adviceWith and only call it once.

> Exception handlers added with RouteDefinition.adviceWith() are not applied consistently
> ---------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4296
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4296
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.8.0
>         Environment: JUnit 4
>            Reporter: Jakub Korab
>            Priority: Minor
>         Attachments: MultiAdviceWithTest.java
>
>
> This may be related to CAMEL-4184. 
> I have a RouteBuilder doing some discovery testing around load balancer behaviour. There
are two RouteBuilders applied within tests using adviceWith (source code attached)
> 1. ThrowsExceptionFromA intercepts a call to an endpoint and throws an exception
> 2. ExceptionHandler applies an onException for that particular Exception type, and tweaks
the body.
> When ThrowsExceptionFromA is applied before ExceptionHandler using adviceWith, the exception
is not handled.
> When ExceptionHandler is applied before ThrowsExceptionFromA using adviceWith, it is.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message