Hi The JPA can also do this http://camel.apache.org/jpa
It will delete the record after it has been processed. If you want to customize this you can set the option to false and use @Consumed in the Entity pojo and that method would be invoked. Check the source code of camel-jpa for examples. On Thu, Mar 31, 2011 at 6:54 PM, Mark Webb <[email protected]> wrote: > I want to create a route that will query a database for new rows > periodically. If a new row is found I would like to put the > information from that row into the route for processing. I have been > looking at the timer and quartz components and can't seem to get > either one to fit quite right with me requirement. > > Is there another Camel component that will do this? I have looked > through the Camel book and found ScheduledPollConsumer, but that just > looks like I would need to add in my own "sleep". > > I tried looking at the unit tests in > /camel/trunk/camel-camel/trunk/camel-core/src/test/java/org/apache/camel/component/timer > and could not find anything that fits either. > > Any other suggestions? > > Thanks, > Mark > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com CamelOne 2011: http://fusesource.com/camelone2011/ Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
