Reputation: 135
When a hudge file is beeing copied to a repository, Camel start processing before the end of the copy.
This is my route définition :
file:C:/data?include=[A-Z]{3}_01.*\.eee$&delete=true&moveFailed=C:/data/error
If my eee filesize is > 50Mo, i've got an error during processing..
How to tell Camel to wait until the end of the copy of the file?
Thanks !
Upvotes: 2
Views: 2408
Reputation: 55525
Please read the documentation first. See that big box on the top of this page, with the title Avoid reading files currently being written by another application
Upvotes: 4
Reputation: 691
You can use initialDelay
and delay
to solve this issue.
initialDelay
is the time before the files start to be consumed.
delay
is the time between polls of the directory.
Please see the File2 documentation for more information.
Upvotes: 0