camel timer to execute polling in DB

Solution Verified - Updated -


  • We would like to execute a polling on a db table every day at the same hour. Is it possible to use camel timer? How can we configure it?
  • We are trying to use the Timer component to fire events each 24 hours beginning on a certain date. We need it to be fired everyday and only once a day. When we first launch our component with a future date it works-
  • When it's redeployed into the container (due to container updates) after this date, the timer is instantly fires n times, for all the days from the initial date until today.
    In the example, deploying it today makes the timer to fire 4 times. Instead, it shouldn't fire at all and wait the next day at 00:00:00.

  • Our camel route is developed as the following below,

<from uri="timer://driver-score?fixedRate=true&period=&time=" ></from>

timer.time=2016-11-13 00:00:00


  • Red Hat JBoss Fuse
    • 6.2.x
    • 6.3.x
  • Apache Camel
    • Camel Timer component

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In