Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 93361 invoked from network); 31 Mar 2011 16:54:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Mar 2011 16:54:57 -0000 Received: (qmail 23852 invoked by uid 500); 31 Mar 2011 16:54:57 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 23813 invoked by uid 500); 31 Mar 2011 16:54:57 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 23805 invoked by uid 99); 31 Mar 2011 16:54:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2011 16:54:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elihusmails@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-ew0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Mar 2011 16:54:49 +0000 Received: by ewy24 with SMTP id 24so832964ewy.32 for ; Thu, 31 Mar 2011 09:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=Isy/qc/alAvMXg19ZZBJVXxk5xDbgCna05mMeU4ZN78=; b=W60LfcRKRe5BNOJsADg/6Y1g9/0z0EA/FFMpbGOmyXjh7LeZ2sqjZF2QGMtjxrTSKf 5tTR8wpiourYUUrTuIB5wKnfgBYPxjoxjlhRyASzFkKgRqZ/UGI+AwvCOTgLaBlNLYEp FvNBCeEU4D/TS3iCJcIv1hlW3lu7N/R2mavSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=QBoF18VSrt2zZwWpxecpPe76tsnWSi76OzbsScAaf49tlb2wFwqqWxUvmIrPAq5Ziu +1sSlHYdLQYjMdCMSDwWcDHquFOVQ9xsBH21RcD/rGYo4mp/uXUr0BC++MmnwIe5wZJ7 bI2Gi2KZO2INH0WP9wcEWcHW4n/B2jLEmvgaU= MIME-Version: 1.0 Received: by 10.213.22.138 with SMTP id n10mr1194213ebb.147.1301590469348; Thu, 31 Mar 2011 09:54:29 -0700 (PDT) Received: by 10.213.12.194 with HTTP; Thu, 31 Mar 2011 09:54:29 -0700 (PDT) Date: Thu, 31 Mar 2011 12:54:29 -0400 Message-ID: Subject: polling database From: Mark Webb To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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