Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
   <from uri="seda:incomingOrders">
       <setBody>
           <el>${in.body.replaceAll('id','orderId')}</el>
       </setBody>
   <to uri="seda:processOrder"/>

And the sample using the Java DSL:

Code Block
java
java

   from("seda:incomingOrders").setBody().el("${in.body.replaceAll('id','orderId')}).to("seda:processOrder");

Dependencies

To use EL in your camel routes you need to add the a dependency on camel-juel which implements the EL language.

...