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.