THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Language | Implementation | language="..." value |
---|---|---|
BeanShell |
|
Additional arguments to ScriptingEngine
Available as of Camel 2.8
You can provide additional arguments to the ScriptingEngine
using a header on the Camel message with the key CamelScriptArguments
.
See this example:
Wiki Markup |
---|
{snippet:id=e1|lang=java|url=camel/trunk/components/camel-script/src/test/java/org/apache/camel/builder/script/JavaScriptExpressionTest.java} |
Dependencies
To use scripting languages in your camel routes you need to add the a dependency on camel-script which integrates the JSR-223 scripting engine.
...
Code Block |
---|
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-script</artifactId> <version>1<version>x.4x.0<x</version> </dependency> |