[
https://issues.apache.org/jira/browse/CAMEL-10083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15347853#comment-15347853
]
Claus Ibsen commented on CAMEL-10083:
-------------------------------------
This requires a new option, and then you check for the header batch complete ==
true at
https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/Exchange.java#L89
That header is only set for the last file processed from a batch. If the header
is not present then the default disconnect option is used.
> Add "disconnectOnBatchComplete" option to close FTP connection immediately
> after Batch of upload complete
> ---------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-10083
> URL: https://issues.apache.org/jira/browse/CAMEL-10083
> Project: Camel
> Issue Type: New Feature
> Components: camel-ftp
> Reporter: xlogger
> Priority: Minor
>
> Refer to
> http://stackoverflow.com/questions/37958201/apache-camel-batch-ftp-upload-then-disconnect/
>
> Currently there is "disconnect=false" option in camel-ftp component which
> will retain FTP connection after multiple files upload. The connection will
> be closed only if the FTP server timeout my connection
> Wish to have one more option (e.g. "disconnectOnBatchComplete") which allow
> the ftp connection to close immediately after a batch of file upload completed
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)