camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeniu <eugen...@hotmail.com>
Subject Understanding Request-Reply EIP in Spring DSL
Date Tue, 24 Apr 2012 17:49:40 GMT
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?

--
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.

Mime
View raw message