Hi Willem.

I'm using camel 2.8.0

My quartz settings are as follow :

    <bean id="quartz"
class="org.apache.camel.component.quartz.QuartzComponent">
        <property name="propertiesFile" value="quartz.properties"/>
    </bean>

and

#============================================================================
org.quartz.scheduler.instanceName = BabelScheduler
org.quartz.scheduler.instanceId = AUTO

#============================================================================
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 25
org.quartz.threadPool.threadPriority = 5

#============================================================================
org.quartz.jobStore.misfireThreshold = 60000

org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass =
org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.useProperties = false
org.quartz.jobStore.dataSource = babelDS
org.quartz.jobStore.tablePrefix = qrtz_

org.quartz.jobStore.isClustered = true
org.quartz.jobStore.clusterCheckinInterval = 20000

org.quartz.dataSource.babelDS.jndiURL=java:comp/env/jdbc/babel


The general route is :
        from(endpoint(QUARTZ)).routeId(getName())
                .processRef(BabelConstants.JOB_EXECUTION_PROCESSOR)
                .setExchangePattern(ExchangePattern.InOnly)
                .to(endpoint(QUARTZ_OUT));

The processor is used to build a request that is post via the QUARTZ_OUT
endpoint to a REST entry point of another route. My testing crons are set to
fire every minutes : 0 * * ? * *

What I noticed is that my quartz component is not auto launched at spring
startup (even tring to explicitly set <property name="autoStartScheduler"
value="true"/> in its spring conf), i have to instantiate another quartz
route for the component to go up and read its store content
(jdbcjobstore.JobStoreTX Handling 2 trigger(s) that missed their scheduled
fire-time) but still it does nothing with them (the processor is never
reached by a thread).

Cédric

--
View this message in context: 
http://camel.465427.n5.nabble.com/Quartz-stateful-job-routes-not-recreated-on-server-restart-tp4774630p4777722.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to