camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taariq Levack <taar...@gmail.com>
Subject Re: File reading and writing issue
Date Tue, 05 Jul 2011 13:27:22 GMT
Hi

Try file://inputdir/?noop=true

noop 	

Default : false 	
If true, the file is not moved or deleted in any way. This option is
good for readonly data, or for ETL type requirements. If noop=true,
Camel will set idempotent=true as well, to avoid consuming the same
files over and over again.

>From http://camel.apache.org/file2.html

Taariq

On Tue, Jul 5, 2011 at 3:20 PM, Gnanaguru S
<gnanaguru.sattanathan@wipro.com> wrote:
>
> Hi
>
> This code was successful.
>
> <from uri="file://inputdir/"/>
> <to uri="activemq:queue:inputQueue"/>
>
> But here , when i place a xml file in inputdirectory, it is moving out of
> that folder !. I want it just to copied or the to be just read and move to
> the queue.
>
> Also from the output queue, i want the contents to be written in a peculiar
> file namely: output.xml.
> ( " <from uri="activemq:queue:outputQueue"/>
>                 <to uri="file://outputdir/"/> " )
>
> Since tried with this code, it didnt worked ( <to
> uri="file:target?fileName=output.xmll"/> )
>
> Kindly help me out
>
>
>
> Cheers
> Guru
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/File-reading-and-writing-issue-tp4553224p4553224.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message