camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raghuveer <raghuveer.maga...@gmail.com>
Subject Re: Request to multiple routes
Date Wed, 30 Mar 2016 16:23:44 GMT
Hi,

Ex:
route("").to(bean1).to(bean2).to(bean3)....

Initial received HTTP request is sent to bean1 and the request will be part
of exchange body. Post processing request in bean1 is it good practice to
set a new response object in exchange which can be passed as input to bean2
directly or post transformation? Or is it fine the initial request which is
sent to bean1 is processed and the response found post processing is set to
same request object and then send to bean2, with which we can have both the
request and processed response in same object which will be sent to bean2
and so on. In camel, can someone suggest is there any recommended approach
that need to be followed for the given scenario..?

Approach 1: Each Bean method has its own request and response

Approach 2: Use one object and traverse between different beans if it meets
requirement

Or any other suggested approach..?

Thanks




--
View this message in context: http://camel.465427.n5.nabble.com/Request-to-multiple-routes-tp5779997p5780068.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message