Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15239

camel-velocity header option does not conform to documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.0
    • 3.4.1, 3.5.0
    • camel-velocity
    • None
    • Unknown

    Description

      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");

       

       

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            bocamel John Yin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: