Sascha Dirbach created CAMEL-9146:
-------------------------------------
Summary: SFTP Consumer does not work with disconnect and
file-rename options set
Key: CAMEL-9146
URL: https://issues.apache.org/jira/browse/CAMEL-9146
Project: Camel
Issue Type: Bug
Components: camel-ftp
Affects Versions: 2.10.0
Reporter: Sascha Dirbach
A camel route with a from like this:
from("sftp://localhost:22/?username=...&password=...&disconnect=true&preMove=working&move=completed&moveFailed=fail")
fails with an Exception, when the file is moved to the completed or to the fail
directory, as the Consumer closes the connection, when disconnect is set to
true. This is because, the commit or rollback of a file only occurs when the
message was completely processed.
The problem can be avoided, when a Wrapper for the
GenericFileRenameProcessStrategy checks, whether the connection is still open
or reconnects, if its not.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)