camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Karpe <aka...@fusesource.com>
Subject Re: from jms and quartz
Date Mon, 20 Feb 2012 12:43:04 GMT
Hi,

The CronScheduledRoutePolicy is designed to fire up a route for a fixed
period of time and bring it down following a time interval.

The idea is to do some batch processing in a given time window... Can you
clarify what you mean by "it doesn't work". 

Also can you add the following flag to your route "autoStartup=false". Your
route is being started/primed by the context as soon as it is discovered,
thereby not allowing the route to be primed by your policy for the first
go-around. It should work from the second go-around since the route is
stopped and then re-started.

Adding the autoStartup will ensure that your policy is the only one that
starts/stops the route...

Hope this helps.

Cheers,

Ashwin... 

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
--
View this message in context: http://camel.465427.n5.nabble.com/from-jms-and-quartz-tp5498266p5498903.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message