I also did a few tests and didn't got it working (with Camel 2.9.0). It
looks like the <ref> element is useless at the moment inside the
<setHeader> element. Do you consider to raise a JIRA at [1] so we can fix
it?

[1] https://issues.apache.org/jira/browse/CAMEL

Best,
Christian

On Mon, Feb 27, 2012 at 10:20 PM, ramesri <ramesh.sridha...@ihg.com> wrote:

> Thanks Eric for your input.
> Finally, I was able to resolve the problem by doing the following:
>
> <bean id="veloctiyToolsHandler"
> class="com.ihg.sfdc.mdm.util.VelocityToolsHandler"/>
>
> and in the route:
>
> <setHeader headerName="esc">
>            <method ref="veloctiyToolsHandler"
> method="getVelocityEscapeTool"/>
>        </setHeader>
>
> where getVelocityEscapeTool() returns an instance of EscapeTool.
>
> cheers
> ramesh
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-use-escape-tool-esc-xml-somestrwithspclchars-in-camel-velocity-template-tp5505668p5520087.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to