Hi,

Do you mean file consumer consume same file over and over again? If so, you just need add noop=true to from uri, which can avoid consuming the same files over and over again. You may need take a look at [1] to get more details how to configure file component.
[1]http://camel.apache.org/file2.html

Freeman
On 2011-11-21, at 下午3:57, southtechie wrote:

I wrote a came route in beans.xml file to transfer files from one folder to
another.

<camel:route id="files.routing">                
                <camel:from uri="file:///c:/tmp/source/" />                     
                        
                <camel:to uri="file:///c:/tmp/target/" />               
                        
</camel:route>

When I run file transfer happens but the camel does not stop. The funny
thing is whatever files I paste in source folder is transferred to the
target again and again. How to stop the camel running once the transfer is
over?

--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-running-continuously-tp5009748p5009748.html
Sent from the Camel - Users mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com









Reply via email to