I m using a Camel Multicast EIP and I have my aggregation strategy specified as below –
<multicast strategyRef="myAggregationStrategy" parallelProcessing="true">
<to uri="direct1"/>
<to uri="direct2"/>
</multicast>
How do I specify correlationExpression, completionTimeout for my aggregation strategy in XML DSL?
The multicast is not the aggregate EIP pattern. The aggregation strategy on the multicast is for aggregating the responses from the multicasted destinations, so here you have 2 destinations, and therefore there is 2 expected messages to be aggregated.
There is though a timeout option you can specify, in case one of the multicasted messages takes a long time to be processed.