'Apache Camel delete file when ftp/sftp disconnect
I use camel to read files by ftp or sftp but when these are too large the connection stops and I can not delete the file, is there a way to avoid this problem ? This is my route:
var ftpUri = "$uri?" +
"password=RAW(${configuration.password})" +
"&include=${configuration.fileMask}" +
"&passiveMode=true" +
"&delete=true" +
"&bridgeErrorHandler=true" +
"&disconnect=true" +
"&throwExceptionOnConnectFailed=true"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
