camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "arda.aydin" <>
Subject Poll a folder and consume files older than x times
Date Sun, 23 Jan 2011 13:29:11 GMT


In my system, there is a folder that i use to put some files to be consumed
by an application which deletes the file after the consume. If the name of
the file is not good for the application, the file is never read and stays
inside folder. 

So i want to poll this folder with a camel route, then consume files which
are older than x times in order to move them inside an error folder and
throw an exception.

What is the best way to do it?
- Filter that checks the lastmodificationdate of the file?
- A polling component which polls twice and chacks the existence of the

I would be glad to have your ideas.
Thank you.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message