I am using the recipientList to forward a message to a dynamic vm:// endpoint. I also enabled parallel processing and specified the UseLatestAggregationStrategy in the hope to get the response message from the last consumer.
However what I observe is that the message is sent to the dynamic recipient and immediately the attached aggregate function is called with the original request message just sent by the dynamic recipient. Then the response is returned to the original route consumer and some time later the aggregate function is called again with the actual result but by then its already responded with the wrong message. I use camel 2.12.3 - DSL, blueprint junit4 test ... stock standard .from(direct:start) .setHeader(DynamicRoute.ROUTE_NAME, simple("vm:route-x")) .recipientList(header(DynamicRoute.ROUTE_NAME)) .parallelProcessing() .aggregationStrategy(AggregationStrategies.useLatest()) I think I am missing something here, just not too sure what. Can anyone help? Kind Regards, Niels -- View this message in context: http://camel.465427.n5.nabble.com/recipientList-together-with-UseLatestAggregationStrategy-results-in-original-in-message-to-be-returnd-tp5751462.html Sent from the Camel - Users mailing list archive at Nabble.com.