public void configure() {
errorHandler(deadLetterChannel("mock:failed").maximumRedeliveries(0));
// we don't want the DLC to handle the Exception
onException(CamelException.class).handled(false);
from("direct:seqential").split(body().tokenize(","), new UseLatestAggregationStrategy()).to("mock:result");
from("direct:parallel").split(body().tokenize(","), new MyAggregationStrategy()).parallelProcessing().to("mock:result");
from("direct:streaming").split(body().tokenize(",")).streaming().to("mock:result");
from("direct:parallel-streaming").split(body().tokenize(","), new MyAggregationStrategy()).parallelProcessing().streaming().to("mock:result");
from("direct:exception")
.split(body().tokenize(","))