Hi I localized the error. Object DefaultShutdownStrategy$ShutdownTask call ((ShutdownAware) consumer).deferShutdown(shutdownRunningTask)
The method of the object GenericFileConsumer always returns false. I redefined the method of the FtpConsumer Now DefaultShutdownStrategy waits until the process. As you can see, the waiting time starts at 300 seconds, and should be 10 seconds. For details, see page http://camel.apache.org/cronscheduledroutepolicy.html . Parameter routeStopGracePeriod = 10 seconds. The time period to wait before initiating graceful route stop -- View this message in context: http://camel.465427.n5.nabble.com/Camel-ftp-read-next-file-after-close-connection-tp4952369p4962474.html Sent from the Camel - Users mailing list archive at Nabble.com.