camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Camel message -How long custom headers and properties live
Date Wed, 07 Dec 2011 22:26:21 GMT
Hello Peter!

I'm not sure, but may "//*/data/text()" doesn't return a String? It may
return a kind of TextImpl (org.w3c.dom.Text) which isn't serializable and
reason Camel drop it? Could you log the class of the header values?

Best,
Christian

On Tue, Dec 6, 2011 at 7:45 AM, rspeter <rspeter@yahoo.com> wrote:

> Hi Claus,
>
> As I said earlier, I am using only header now.
> But I have issues tracking the header again.
>
> I used xpath to store value in a headerName='"test". I can see this header
> is visible only when I explicitly set its result type to string, otherwise
> the headername is not visible.
>
> Visible header:
> <setHeader headerName="test"><xpath
> resultType="java.lang.String">//*/data/text()</xpath></setHeader>
>
> NOT-Visible header:
> <setHeader headerName="test"><xpath>//*/data/text()</xpath></setHeader>
>
> Thanks
> Peter
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-message-How-long-custom-headers-and-properties-live-tp5047495p5051169.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message