Have you read the documentation and tried the example?
$in.setHeader('fruit', 'orange')
http://camel.apache.org/velocity.html
On 15 April 2014 15:52, dunnlow <[email protected]> wrote:
> I currently use velocity to set the message body. Now, I would like to use
> it to set a _header_. I haven't found any example of this. Obviously I
> could write a processor/bean. Is there a better way? Thanks. -J
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Set-header-from-velocity-template-tp5750248.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Bilgin Ibryam
Apache Camel & Apache OFBiz committer
Blog: ofbizian.com
Twitter: @bibryam <https://twitter.com/bibryam>
Author of Instant Apache Camel Message Routing
http://www.amazon.com/dp/1783283475