Rafal, this sounds like the Content Enricher pattern to me: http://camel.apache.org/content-enricher.html
a bean or inlined fluent processor is probably a good solution - you seem to be on the right track ~ RNPG On Feb 21, 2012, at 6:32, Rafal Janik <[email protected]> wrote: > Hi! > > I'm looking for the best pattern to call another service for part of the data > in one route. > > In my case there is a message for example: > > < a > < b > c < /b > < /a > > > I want to send it from service X to Y but between the consumer and provider > I want to call service Z with c parameter to get some information and replace > the c value with the service Z response. > > One solution I can come up is to put a new bean inside a route with setter > and getter for a message, to store the message there, then send just c to > service Z, and then merge the result from Z and from my bean getter and at > least send it to the service Y. > > But probably there there is a better pattern for that, isn't it? > > regards > > > rafal > > >
