On Thu, Nov 3, 2011 at 11:06 PM, alexey-s <alex...@mail.ru> wrote: > 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 >
When a route is stopped using a scheduled route policy it should log the timeout it used such as INFO DefaultShutdownStrategy - Starting to graceful shutdown 1 routes (timeout 10000 milliseconds) Do you see 300 sec instead? > -- > 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. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/