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 early version of the new website
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
You can use OGNL dot notation to invoke operations. If you for instance have a body that contains a POJO that has a
For example you could use OGNL 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 OGNL in your camel routes you need to add the a dependency on camel-ognl which implements the OGNL 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).
Otherwise, you'll also need OGNL