You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "John Yin (Jira)" <ji...@apache.org> on 2020/06/24 15:34:00 UTC
[jira] [Created] (CAMEL-15239) camel-velocity header option does
not conform to documentation
John Yin created CAMEL-15239:
--------------------------------
Summary: camel-velocity header option does not conform to documentation
Key: CAMEL-15239
URL: https://issues.apache.org/jira/browse/CAMEL-15239
Project: Camel
Issue Type: Bug
Components: camel-velocity
Affects Versions: 3.4.0
Reporter: John Yin
The example given in the documentation does not work in 3.4.0:
from("direct:in"). setHeader("CamelVelocityResourceUri").constant("path/to/my/template.vm"). to("velocity:dummy");
One has to use the allowTemplateFromHeader in the endpoint:
from("direct:in"). setHeader("CamelVelocityResourceUri").constant("path/to/my/template.vm"). to("velocity:dummy?allowTemplateFromHeader=true");
--
This message was sent by Atlassian Jira
(v8.3.4#803005)