> 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?

Why do you want to use velocity for that?

Just

from(...)
  .setHeader("headerName", constant("constant value"))
  .setHeader("xmlHeader", xpath("xpath/on/xml/body"))
  ...


Jan

Reply via email to