camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gordie <gordie.macken...@gmail.com>
Subject Quartz trigger problem
Date Tue, 06 Oct 2015 17:29:53 GMT
I am trying to implement a quartz cron-like timer that needs to execute every
morning at 8am. I have been trying to get the example to work but it just
never seems to get triggered. I am simply trying to log a message at a test
interval. Any thoughts?
Here's the blueprint XML:

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://camel.apache.org/schema/blueprint"
	xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
	xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
	xmlns:enc="http://karaf.apache.org/xmlns/jasypt/v1.0.0"
	xsi:schemaLocation="
       http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
       http://camel.apache.org/schema/blueprint
http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
       http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0
http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.0.0.xsd">



<bean id="startPolicy"
class="org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy">
    <property name="routeStartTime" value="*/3 * * * * ?"/>
</bean>
     
<camelContext xmlns="http://camel.apache.org/schema/spring">
  <route autoStartup="false" routePolicyRef="startPolicy" id="testRoute">
    <from uri="direct:start"/>
    <log message="cron test" />
    <to uri="mock:success"/>
  </route>
</camelContext>
</blueprint>



--
View this message in context: http://camel.465427.n5.nabble.com/Quartz-trigger-problem-tp5772349.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message