camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Roger <>
Subject Re: Velocity component
Date Thu, 22 Apr 2010 13:59:18 GMT

I could indeed unmarshal using JAXB but I would like to use as less Java as

I am facing an other problem now:
When I extract the value using XPath like this:


and use it in the velocity template with:

Hello ${headers.firstname}

It produce this kind of result:


Is there some way to use set the header value as text ?

Thanks in advance !

Christian Mueller wrote:
> Hello Oliver!
> I think another possibility could be for you to use JAXB to unmarshal your
> XML document into a java bean. Then you can use the following expression
> in
> your velocity template: $body.username
> Please have a look on this test:
> and
> Regards,
> Christian

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message