camel-users mailing list archives

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

Hi,

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
file?

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


-- 
View this message in context: http://camel.465427.n5.nabble.com/Poll-a-folder-and-consume-files-older-than-x-times-tp3353626p3353626.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message