Versions Compared

Key

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

...

Language

Implementation

language="..." value

BeanShell

BeanShell 2.0b5

beanshell or bsh

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>