Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository: https://github.com/apache/camel/blob/master/README.md https://github.com/apache/camel/blob/master/components/readme.adoc
You can use Mvel dot notation to invoke operations. If you for instance have a body that contains a POJO that has a
For example you could use Mvel inside a Message Filter in XML
And the sample using Java DSL:
Loading script from external resource
Available as of Camel 2.11
You can externalize the script and have Camel load it from a resource such as
To use Mvel in your camel routes you need to add the a dependency on camel-mvel which implements the Mvel language.
If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see the download page for the latest versions).