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)

Reply via email to