The file protocol doesn't support headers. You have to marshal/serialize your message in a way which preserve your headers in the message payload.
Best, Christian Sent from a mobile device Am 30.05.2012 15:22 schrieb "RadoslavStoyanov" < radoslav.stoya...@softwareag.com>: > Hi, > > I have next question: > Is it possible to pass some Camel Message Headers to File Endpoint? > Example: > 1. I have jms topic and I set some custom headers in the message > 2. I route from that jms topic to file endpoint > 3. i consume the message from the file endpoint and I want to consume my > custom header set at the time message was sent to the jms topic > > Currently I failed to find a standard way to do that, so please if there is > a way to describe it! > > Regards, > Radoslav > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Passing-Camel-Message-Headers-to-File-Endpoint-tp5713737.html > Sent from the Camel - Users mailing list archive at Nabble.com. >