<bean id="date" class="org.apache.camel.routepolicy.quartz.SimpleDate"/>
 
 <bean id="startPolicy"
class="org.apache.camel.routepolicy.quartz.SimpleScheduledRoutePolicy">
     <property name="routeStartTime" value="time"/>          
 </bean>
        
 <camelContext id="testRouteContext"
xmlns="http://camel.apache.org/schema/spring";>
     <route id="testRoute" autoStartup="false" routePolicyRef="startPolicy">
         <from uri="seda:foo?concurrentConsumers=20"/>
         <to uri="mock:result"/>
     </route>
 </camelContext>
</route>

In from uri u can give a dummy timer to start ur route.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Starting-a-rout-once-on-start-and-then-always-at-3am-tp5759767p5759832.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to