Hi there,

I am very new to Camel and try to solve the following problem.

I have files on Server A and want to copy them to Server B and then read the 
content and save the content to a database. I want to process every file only 
once…

I started to set up a camel route like this:

 from("sftp://serverA:/../."; + "" +
                        "./dir/?privateKeyFile=/someFile/" +
                        
".ssh/rsa&stepwise=false&filter=#notTodayFilter").to("file:data/outbox");

The filter only filters some files. 

My problem is, when the sftp consumer has consumed every file once it starts 
again and again, as long as the camel context is running.

How can I tell him to stop after the first round?

When I start the context…lets say….on the next day, how can I tell camel not to 
process the same files again but to only copy new files? 


Thanx a lot!

Reply via email to