Hi,

I am trying to set the result of an xpath expression evaluation in the
header and it is failing:


from("jms:topic:someTopic")
             .setHeader("abc", xpath("/c:msg@event", String.class, ns))


Getting this error:

The method xpath(String) in the type BuilderSupport is not applicable for
the arguments (String, Class<String>, Namespaces).

It looks like the 'xpath' in the router is different than the 'xpath' in
setHeader.

Any ideas.

Thanks!

Reply via email to