On Tue, Apr 24, 2012 at 7:49 PM, Eugeniu <[email protected]> wrote:
> Hi
>
> Here is the listing 7.6 from Camel in Action book:
>
> <camelContext xmlns="http://camel.apache.org/schema/spring";>
>  <route>
>    <from uri="cxf:bean:orderEndpoint" />
>    <to uri="seda:incomingOrders" />
>    <transform>
>      <constant>OK</constant>
>    </transform>
>  </route>
> </camelContext>
>
> Here the 'transform' construct changes the message body to string 'OK' and
> sends this back to the web service as reply. How in general do you send
> replies in such cases. Is there a rule that in Request-Reply scenarios the
> last message in the route is sent as a reply? I mean there is not visual
> hint that the 'transform' refers to the initial web service request..
> A related question: How to find out the default MEP supported by a given
> Camel Component?
>

Yes the consumer sends back the reply based on what the Camel message
"looks like" at the end of the routing.
So in general the last step of the route is for the reply message.



> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Understanding-Request-Reply-EIP-in-Spring-DSL-tp5662809p5662809.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to