[ 
https://issues.apache.org/jira/browse/CAMEL-4296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-4296.
--------------------------------

       Resolution: Won't Fix
    Fix Version/s: 2.9.0

I have added warning to wiki page, and notes in javadoc about the fact the 
adviceWith cannot work when advicing multiple times on the same route.

I added a working unit test based on the attached file, eg only advice one time.

Camel 3.0 should be able to support this when the routing engine becomes more 
dynamic

> 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
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.0
>
>         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

        

Reply via email to