Why are you using a file in the first place? Perhaps you can use the claim check pattern? You would park your file on a disk somewhere and put a header in your message to point to it. On Jun 1, 2012 2:18 AM, "Christian Müller" <christian.muel...@gmail.com> wrote:
> Add a marshal / converting step. > > Best, > Christian > > Sent from a mobile device > Am 01.06.2012 01:26 schrieb "MichaelAtSAG" <mebevilac...@gmail.com>: > > > I understand that using the Message ID is the default behavior for the > > filename when routing to a file endpoint. > > > > What if you wanted to retain the message id but not use the filename as > the > > id? For example, we want the file output like this: > > > > <message> > > <header> > > <MessageID>ID-MCMICHAELB03-59827-1338399528529-12-2</MessageID> > > </header> > > <body> > > <camel body> > > </body> > > </message> > > > > Would you suggest a "marshall" step to accomplish this pattern? > > > > Or would you place the MessageID into the camel Message body? > > > > -- > > View this message in context: > > > http://camel.465427.n5.nabble.com/Passing-Camel-Message-Headers-to-File-Endpoint-tp5713737p5713813.html > > Sent from the Camel - Users mailing list archive at Nabble.com. > > >