You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sathiyaraja <sa...@hotmail.com> on 2014/12/01 02:25:01 UTC

Re: Starting a rout once on start and then always at 3am

<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.