Hi

I added an unit test with a scheduled policy + a custom policy
http://svn.apache.org/viewvc?rev=1303353&view=rev

The test shows that the callbacks is invoked as expected.

On Tue, Mar 20, 2012 at 5:40 PM, OrackBahama <jdorfsch...@metadok.de> wrote:
> Maybe this could help:
>
> 17:23:50,876 DEBUG [Camel (camel) thread #2 - file://C:/Projects...... #####
> 17:24:00,009 DEBUG [DefaultQuartzScheduler-camel_QuartzSchedulerThread]
> org.quartz.simpl.SimpleJobFactory: Producing instance of Job
> 'jobGroup-SapIDOC2Archive.job-STOP-SapIDOC2Archive',
> class=org.apache.camel.routepolicy.quartz.ScheduledJob
> 17:24:00,011 DEBUG [DefaultQuartzScheduler-camel_Worker-2]
> org.quartz.core.JobRunShell: Calling execute on job
> jobGroup-SapIDOC2Archive.job-STOP-SapIDOC2Archive
> 17:24:00,012 DEBUG [DefaultQuartzScheduler-camel_Worker-2]
> org.apache.camel.routepolicy.quartz.ScheduledRoutePolicy: Scheduled Event
> notification received. Performing action: STOP on route: SapIDOC2Archive
> 17:24:00,018 INFO  [DefaultQuartzScheduler-camel_Worker-2]
> org.apache.camel.impl.DefaultShutdownStrategy: Starting to graceful shutdown
> 1 routes (timeout 10000 milliseconds)
> 17:24:00,019 DEBUG [DefaultQuartzScheduler-camel_Worker-2]
> org.apache.camel.impl.DefaultExecutorServiceManager: Created new ThreadPool
> for source: org.apache.camel.impl.DefaultShutdownStrategy@be8464 with name:
> ShutdownTask. -> java.util.concurrent.ThreadPoolExecutor@159df6c
> 17:24:00,026 DEBUG [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.impl.DefaultShutdownStrategy: There are 1 routes to
> shutdown
> 17:24:00,030 DEBUG [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.impl.DefaultShutdownStrategy: Route: SapIDOC2Archive
> suspended and shutdown deferred, was consuming from:
> Endpoint[file://C:/Projects...... #####
> 17:24:00,031 DEBUG [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.impl.DefaultShutdownStrategy: Route: SapIDOC2Archive
> preparing to shutdown complete.
> 17:24:00,032 DEBUG [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.impl.ScheduledPollConsumer: This consumer is stopping, so
> cancelling scheduled task:
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@69e732
> 17:24:00,035 DEBUG [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.component.file.FileConsumer: Stopping consumer:
> Consumer[file://C:/Projects...... #####
> 17:24:00,037 DEBUG [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.component.direct.DirectProducer: Stopping producer:
> Producer[direct://inFileProtocolIns]
> 17:24:00,037 DEBUG [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.component.direct.DirectProducer: Stopping producer:
> Producer[direct://error]
> 17:24:00,038 DEBUG [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.component.direct.DirectProducer: Stopping producer:
> Producer[direct://error]
> 17:24:00,039 DEBUG [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.component.direct.DirectProducer: Stopping producer:
> Producer[direct://archive]
> 17:24:00,042 INFO  [Camel (camel) thread #3 - ShutdownTask]
> org.apache.camel.impl.DefaultShutdownStrategy: Route: SapIDOC2Archive
> shutdown complete, was consuming from: Endpoint[file://C:/Projects......
> #####
> 17:24:00,044 INFO  [DefaultQuartzScheduler-camel_Worker-2]
> org.apache.camel.impl.DefaultShutdownStrategy: Graceful shutdown of 1 routes
> completed in 0 seconds
> 17:24:00,045 DEBUG [DefaultQuartzScheduler-camel_Worker-2]
> org.apache.camel.impl.RouteService: Stopping services on route:
> SapIDOC2Archive
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/CronScheduledRoutePolicy-tp4552324p5580560.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
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/

Reply via email to