Re: problem with exception in the recipientList

2016-03-22 Thread nuskhu
here is the code: public class AggregationSimple implements AggregationStrategy { /** Logger de la classe. */ private static final Logger LOGGER = Logger.getLogger(AggregationSimple.class); public Exchange aggregate(final Exchange pOldExchange, final Exchange pNewExchan

Re: problem with exception in the recipientList

2016-03-22 Thread Claus Ibsen
What is your aggregation strategy source code. It depends how you handle it there. S On Tue, Mar 22, 2016 at 2:38 PM, nuskhu wrote: > It's a valid endpoint, it's just throwing an exception to check the behaviour > of the recipiantList : > > @Component > public class ThrowingConsumerB { > > pr

Re: problem with exception in the recipientList

2016-03-22 Thread nuskhu
It's a valid endpoint, it's just throwing an exception to check the behaviour of the recipiantList : @Component public class ThrowingConsumerB { private static final Logger LOGGER = LoggerFactory.getLogger(ThrowingConsumerB.class); public String sayHello(@Body String message) { L

Re: problem with exception in the recipientList

2016-03-22 Thread Claus Ibsen
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 wrote: > hi, > I think that i meet a problem with the recipientList when an endpoint throw > an exception. > > this code work : > > from("di