camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dunnlow <>
Subject Message Headers to file component?
Date Mon, 01 Oct 2012 19:01:46 GMT
Hi, am trying to pass information between two camel apps via file.  I
envisioned a way to redirect a message (body and headers) to a file and then
have the second app consume that file as a message (just as if it had
originated on the second system).  

I tried just sending the original message to the file component, but only
the message gets output (no headers).  I figured the solution was to marshal
to/from xstream but this just puts the message in xml (no headers again):

  from ("direct:tofile").marshal().xstream().to("file:outbox");

What is the easiest/best way to marshal a message (body and headers, dont
need attachments) to a file?


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

View raw message