Apache Camel: multicast with aggregation - AggregationStrategy called too often
问题 I have the following strange (or at least unclear to me) behaviour for a multi-cast + aggregation. Consider the following route: from("direct:multicaster") .multicast() .to("direct:A", "direct:B") .aggregationStrategy(new AggregationStrategy() { @Override public Exchange aggregate(Exchange oldExchange, Exchange newExchange) { if (oldExchange == null) { List firstResult = newExchange.getIn().getBody(List.class); newExchange.getIn().setBody(ImmutableList.copyOf(firstResult)); return newExchange