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

courtin commented on CAMEL-9741:
--------------------------------

I attach my zip project. 
Thank your for your explanation, my aggregation strategy just concat the body 
of each exchange and doesn't manage the exception set in the exchange. I was 
thinking that no exception will be rise in the case of the last exchange have 
an exception set and if the stopOnException is put to false. I was thinking 
that you have to throw the exception by yourself in the aggregation strategy if 
you want it and i was thinking that stopOnException=true is used to this 
purpose.
thank you for your help and sorry for my mistake

> recipientList stop if the second endpoint throw exception
> ---------------------------------------------------------
>
>                 Key: CAMEL-9741
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9741
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.16.2
>            Reporter: courtin
>            Assignee: Tomas Rohovsky
>             Fix For: 2.16.3, 2.18.0, 2.17.1
>
>         Attachments: recipientList.rar, recipientList.zip
>
>
> this code is ok and do the agregate :
>  from("direct:rlAggregate")
>                 .process(new Processor() { String   destinations = 
> "bean:throwingExceptionConsumerB, bean:consumerC";} })
>                 .recipientList(header("destinations"), 
> ",").parallelProcessing().aggregationStrategy(agg);
> an this one not :
>  from("direct:rlAggregate")
>                 .process(new Processor() { String   destinations = 
> "bean:consumerC, bean:throwingExceptionConsumerB";} })
>                 .recipientList(header("destinations"), 
> ",").parallelProcessing().aggregationStrategy(agg);
> it's throwing :
> org.apache.camel.CamelExecutionException: Exception occurred during execution 
> on the exchange
> they should have the same results. And only the option stopOnException should 
> allow to stop when an Exception rise.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to