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.

Reply via email to