On Wed, Sep 12, 2012 at 11:54 AM, Tim Dudgeon <
[hidden email]> wrote:
> When using the File component to write to a file is it always the message
> body that is written, or is it possible to use an expression (e.g. simple)?
> Of course body can be replaced with new content using an expression, but is
> that the only way to do this?
>
Yes, you can use wireTap with an expression to set the body which taps
to the file endpoint. Then you can write without changing the original
exchange.
Or just use a bean and write the file content yourself.
> Tim
--
Claus Ibsen
-----------------
FuseSource
Email:
[hidden email]
Web:
http://fusesource.comTwitter: davsclaus, fusenews
Blog:
http://davsclaus.comAuthor of Camel in Action:
http://www.manning.com/ibsen