Hi I have just created an test on trunk and verified that the cron scheduled policy works fine if you have a route set to autoStartup=false. http://svn.apache.org/viewvc?rev=1144322&view=rev
The route policy will then later trigger and start the route. And the message on the seda queue will be routed to the mock endpoint. On Wed, Jul 6, 2011 at 7:52 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > btw camel-quartz have been improved over time. So if you are not using > the latest release then try to upgrade. > > > On Tue, Jul 5, 2011 at 8:53 AM, tnk <jus...@gmail.com> wrote: >> Hi, >> >> I am using CronScheduledRoutePolicy to start/stop route at specific time. I >> have defined configuration as follows: >> >> <route id="MyRoute" autoStartup="false" >> routePolicyRef="routeStartStopPolicy" > >> .... >> </route> >> >> <bean id="routeStartStopPolicy" >> class="org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy"> >> <property name="routeStartTime" value="0 0 10 * * ?/> >> <property name="routeStopTime" value="0 0 16 * * ?"/> >> </bean> >> >> The problem is with route deployment. If the route is deployed between 10am >> and 4pm, by default it is stopped (autoStartup="false"), but according to >> route policy it should be started. If I set autoStartup="true", then if >> deployed before 10am or after 4pm the route is by default started. So I need >> to use JMX console to start/stop route manually depending on deployment >> time. >> Is it possible to check with camel tools to check is the route should be >> started or stopped at the deployment time? >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/CronScheduledRoutePolicy-tp4552324p4552324.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/ > -- 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/