I didn't look deep enough with Quartz earlier; Thanks. 

I got it working with below route. 

<bean id="cronDequeueStartPolicy"
                
class="org.apache.camel.routepolicy.quartz2.CronScheduledRoutePolicy">          
                <property name="routeStartTime" value="0 0/15 * ? * *" />
</bean>

<camelContext>          
        <endpoint uri="jms:queue:testQueue" id="testQueue" />
        <routeContext>
                <route  routePolicyRef="cronDequeueStartPolicy" 
autoStartup="false"
trace="true">
                <from ref="testQueue"/>        
                                <to uri="bean:dequeuebean?method=dequeue" />
        </route>
        </routeContext>
</camelContext>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-How-to-dequeue-all-messages-accumulated-every-X-minutes-tp5783739p5783833.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to