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

Velocity Component: Ability to specify velcoity resource/template as message header

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • camel-spring
    • 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

        1. patch.txt
          5 kB
          Stanley J. Lewis

        Issue Links

          Activity

            People

              slewis Stanley J. Lewis
              tide08 slad
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: