No there is an option to ignore invalid endpoints you need to turn on
http://camel.apache.org/recipient-list.html



On Tue, Mar 22, 2016 at 2:11 PM, nuskhu <arnaud.cour...@cnamts.fr> wrote:
> hi,
> I think that i meet a problem with the recipientList when an endpoint throw
> an exception.
>
> this code work :
>
>  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 the exception :
>
> 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 from an endpoint.
>
> thanks
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/problem-with-exception-in-the-recipientList-tp5779499.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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

Reply via email to