camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henryk Konsek <hekon...@gmail.com>
Subject Re: Camel multicast configuration file
Date Fri, 30 Nov 2012 16:19:21 GMT
Hi Bala,

> I am trying to configure camel multicasting in my project. The requirement
> is to hit multiple services in parallel and consume the response.

As Claus suggested you forgot to aggregate the requests.

And here's how can you aggregate responses from multiple services:

from("direct:serviceAggregator")
  .multicast(new GroupedExchangeAggregationStrategy()).parallelProcessing()
    .enrich("http://servicea.com").enrich("http://serviceb.com")
  .end();

Laters.

--
Henryk Konsek
http://henryk-konsek.blogspot.com

Mime
View raw message