DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
| Code Block |
|---|
"$in.body.familyName" |
You have the full power of EL at your hand so you can invoke methods to for instance replace text. In the sample below we replace the text in the body where id is replaced with orderId.
...
<from uri="seda:incomingOrders">
<setBody>
<el>${in.body.replaceAll('id','orderId')}</el>
</setBody>
<to uri="seda:processOrder"/>
And the sample using the Java DSL:
...
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.
...
| Code Block |
|---|
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-juel</artifactId> <version>1.46.0<1</version> </dependency> |