Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
It would be nice to have a message header that can be used to specify which velocity template to be used for the message. This allows to dynamically use different templates while still preserving velocity endpoint cache. In real life you will have more than 1 template and you use of template will change from message to message.
Something like -
from("direct:start")
.setHeader("velocityTemplate", "orderDisplay.vm");
.to("velocity:dummyTemplate.vm")
Currently to achieve this you have to define custom bean or some processor.
Attachments
Attachments
Issue Links
- duplicates
-
CAMEL-2023 Allow the usage of velocity templates, which are placed/defined in the exchanges In message header or attachment
- Closed