You can set the delay option on the ScheduledPollConsumer[1]. I don't think you need to add a delay in you code.
[1]http://camel.apache.org/polling-consumer.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Tuesday, February 26, 2013 at 5:39 PM, AndyBell wrote: > Hi > > I have a route that triggers a Unix job which updates a database table with > its progress. The trigger process returns instantly, but the resulting Unix > job may take a long time to process. > > My route now needs to poll the database table every n seconds to see when > the job has finished. > > I need to do this mid route and cannot see how using the > ScheduledPollConsumer could do this, unless I am prepared to put a delay in > my Java code. > > Is there a 'camel' way of doing this mid-route? > > Thanks > > Andy > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Polling-database-mid-route-tp5728161.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).