Title: This email may contain confident
thanks a lot,
I don't know how I missed that...


regards

rafal

On 21.02.2012 13:42, Reuben Garrett wrote:
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




    


--
Software Mind

Rafał Janik
Software Engineer
Software Mind SA
ul. Bociana 22A
31-231 Krakow
Polska

Tel. +48 12 252 34 00
Fax: +48 12 252 34 01
Mobile:+48 668 48 36 13
[email protected]
www.softwaremind.pl

Software Mind SA z siedzibą w Krakowie przy ul. Bociana 22A, 31-231 Krakow
NIP 9452012822, kapitał zakładowy PLN 500,000.00 (w całości wpłacony), KRS 0000300409
Sąd Rejonowy dla Krakowa Śródmieścia w Krakowie, XI Wydział Gospodarczy KRS
 
Ta wiadomość może zawierać materiały poufne i objęte tajemnicą zawodową, do wyłącznego użytku odbiorcy (odbiorców). Surowo wzbronione są wszelkie zmiany, wykorzystywanie, przechowywanie, dystrybucja lub ujawnienie przez inne osoby. Jeśli nie jest Pan/Pani zamierzonym odbiorcą (lub osobą upoważnioną do odbioru w imieniu odbiorcy), prosimy o kontakt z nadawcą przez wiadomość zwrotną oraz usunięcie wszelkich kopii niniejszej wiadomości. Poza tym poczta elektroniczna jest podatna na uszkodzenia danych, przechwytywanie, sabotaż, nieupoważnione zmiany i wirusy. Wysyłamy i odbieramy wiadomości poczty elektronicznej wyłącznie na takiej zasadzie, że nie ponosimy odpowiedzialności za jakiekolwiek tego typu uszkodzenia, przechwycenia, sabotaż, zmiany lub wirusy, ani jakichkolwiek konsekwencje tego typu okoliczności.

Reply via email to