camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Bridgewater <max.bridgewa...@gmail.com>
Subject OnCompletion in Camel 2.14
Date Tue, 30 Sep 2014 11:24:56 GMT
Hi,

I have the following route with Camel 2.14. From what I understand the
result of the call should be "Replace body". I was expecting that the
onCompletion would be called at the end of the route to override the
exchange body, which isn't happening.

Am I missing something?


    <camelContext  xmlns="http://camel.apache.org/schema/spring">
        <onCompletion>
            <transform><constant>Replace body</constant></transform>
        </onCompletion>
        <restConfiguration component="servlet"/>
        <route id="post">
            <from uri="rest://post:/demo"/>
            <transform>
                   <simple>${body}</simple>
               </transform>
        </route>
     </camelContext>

Thanks,
Max.

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