Versions Compared

Key

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

Ruby

Camel supports Ruby among other Scripting Languages to allow an Expression or Predicate to be used in the DSL or Xml Configuration.

To use a Ruby expression use the following Java code

Code Block

import static org.apache.camel.builder.script.ScriptBuilder.*;

...

... ruby("someRubyExpression") ... 

For example you could use the ruby function to create an Predicate in a Message Filter or as an Expression for a Recipient ListCreated by James Strachan
On Mon Apr 16 19:53:35 BST 2007
Using TimTam