Versions Compared

Key

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

...

The stringtemplate resource is by default hot reloadable for both file and classpath resources (expanded jar). Setting the contentCache=true then Camel will only load the resource once, and thus hot reloading is not possible. This scenario can be used in production usage when the resource never changes.

Velocity Content

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

key

value

exchange

The Exchange itself

headers

The headers of the in message

camelContext

The Camel Context

request

The in message

in

The in message

body

The in message body

out

The out message (only for InOut message exchange pattern)

response

The out message (only for InOut message exchange pattern)

Samples

For example you could use something like

...