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



Reply via email to