camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel ftp read next file after close connection
Date Sat, 05 Nov 2011 10:41:56 GMT
You should increase the 10 sec timeout on the cron scheduled policy as
its too low.
IMHO it should actually use the default of 300 sec, to ensure a better shutdown.



On Sat, Nov 5, 2011 at 9:36 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> On Thu, Nov 3, 2011 at 11:06 PM, alexey-s <alexins@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: cibsen@fusesource.com
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message