camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: File Overwrite using camel
Date Fri, 27 Apr 2012 08:47:05 GMT
On Fri, Apr 27, 2012 at 10:43 AM, Gnanaguru S
<gnanaguru.sattanathan@wipro.com> wrote:
>
> Hi
>
> I am doing a simple route using camel
>
> <from uri:"file?fileName=//input/test.txt"/>
> <to uri:"file://output"/>
>
> Now If I keep a file test.txt, It will transfer to output folders, But I
> want this to happen every 10 seconds. Every time it writes, It should not
> write a new file. But it should overwrite the existing file.
>
> Because the source will be updated by one system, And the target file should
> be updated the same way.
>
> How can I do that ?
>

Can you read the documentation first please.
http://camel.apache.org/file2

See the options for the file component, eg the producer has a
fileExist option that by default is Override. You can set it to Append
instead.


> Regards
> Guru
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/File-Overwrite-using-camel-tp5669708p5669708.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message