I have these FTP endpoint properties:
include=.*.xml&delay=60s&consumer.bridgeErrorHandler=true&throwExceptionOnConnectFailed=true&binary=true&move=.done&soTimeout=300000
So an endpoint need to search every 60 secounds the *.xml files and consume it. After that the files will be proceed and moved in 'done' directory.
I'm afraid that if f.e. by doing the move of a file an IOException occures, the file will already be deleted from the endpoint root directory.
The question is: do I need to make my FTP-Consumer route transactional?
Another question is: can you give an advise to add another usefull ftp consumer properties for this case?
if f.e. by doing the move of a file an IOException occures
According to GenericFileEndpoint.java you can use setMoveFailed()
to define where to move the file if the moving fails.
The FTP endpoint should inherit that option, see here: FtpEndpoint
I do not think that you need to make you endpoint transactional.
来源:https://stackoverflow.com/questions/53223264/apache-camel-do-i-need-to-make-my-ftp-consumer-route-transactional