Versions Compared

Key

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

...

In Camel 1.4 headers set during the velocity evaluation is returned to the message and added as headers. Then its kinda possible to return values from Velocity to the Message. See this unit test TODO

An example: Set the header value of fruit in the Velocity template .tm:

Code Block

$in.setHeader('fruit', 'Apple')

The header 'fruit' is now accessible from the message.out.headers.

Velocity Context

Camel will provide exchange information in the Velocity context (just a Map). The Exchange is transfered as:

...