...
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.
...
StringTemplate Context
Camel will provide exchange information in the velocity string template 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) |
...