Hi

What is the MEP of the Exchange you send to the vm. If its InOnly it
would not wait for the exchange to be processed. You would need InOut
for that.

See about that at seda (as vm extends seda)
http://camel.apache.org/seda

On Thu, May 22, 2014 at 11:26 AM, nbertram <niels...@gmail.com> wrote:
> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to