camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reuben Garrett <reubengarr...@gmail.com>
Subject Message Transformation issue
Date Fri, 23 Mar 2012 12:00:01 GMT
ramnar,

i believe something like this should work:
http://camel.apache.org/message-translator.html

<camelContext xmlns="http://camel.apache.org/schema/spring">
 <route>
   <from uri="direct:start"/>
   <transform>
     <simple>${in.body} extra data!</simple>
   </transform>
   <to uri="mock:end"/>
 </route>
</camelContext>

also, from what i've heard, the route models will have a much richer
semantic representation in camel 3.0 - so the java<->XML route translation
should be easier in the future.

~ Reuben

On Friday, March 23, 2012, ramnar <raam.soft@gmail.com> wrote:
> I have a very simple scenario where I have to append a text to the
message in a route.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message