So I have a question (possibly simple):

Is there any built-in way to tell when a route is done polling for files and
done transferring them?

Basically, I need (would like to) run a function at the end of every polling
to update a value in a file.  This function would take the Modified On times
of every file that passed through GenericFileFilter implementation I have
written, find the largest (latest) Modified On time of the files that were
just polled, and update a timestamp that is being used as a filter value.

So that then the next time, any file earlier than the latest timestamp would
not be pulled again.

(I do know there is the whole IdempotentRepository that could just keep
track of file names and such and do this for me, but the boss said he didn't
want a potentially very large file sitting around and taking up disk space)



--
View this message in context: 
http://camel.465427.n5.nabble.com/Running-function-at-the-end-of-FTP-Polling-tp5785687.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to