Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 81899 invoked from network); 26 Oct 2010 15:35:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Oct 2010 15:35:10 -0000 Received: (qmail 32649 invoked by uid 500); 26 Oct 2010 15:35:08 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 32181 invoked by uid 500); 26 Oct 2010 15:35:07 -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 32057 invoked by uid 99); 26 Oct 2010 15:35:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 15:35:07 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [160.83.91.148] (HELO nyjinsmp03.us.db.com) (160.83.91.148) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Oct 2010 15:34:59 +0000 Received: from sdbo1005.db.com (nycinmlp5725.us.db.com [10.153.61.253]) by nyjinsmp03.us.db.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id o9QFYbwV021941 for ; Tue, 26 Oct 2010 15:34:38 GMT In-Reply-To: To: users@camel.apache.org Subject: Using JPA Consumer only once in the Route MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.5 CCH1 March 07, 2006 From: Prerna Kaul Message-ID: Date: Tue, 26 Oct 2010 11:34:30 -0400 X-MIMETrack: Serialize by Router on sdbo1005/DBNA/DeuBaInt/DeuBa(Release 8.0.2 FP2 HF135|October 22, 2009) at 10/26/2010 11:34:38 AM, Serialize complete at 10/26/2010 11:34:38 AM Content-Type: multipart/alternative; boundary="=_alternative 00558E1F852577C8_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 00558E1F852577C8_= Content-Type: text/plain; charset="US-ASCII" Hi All, I am trying to use the JPA endpoint as a consumer. However, I want to poll from the database only once. The records returned to me should be distinct in that sense. Is there an existing parameter on the endpoint that would help me do that? My existing solution is this(in psuedo java DSL) - Route 1: from(quartz:interval=0).to(randomProcessor) Route 2: from(jpa).to(databaseProcessor) In randomProcessor, we start the Route 2 using the camelContext and route ID. Is there a better way to do this? --- This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender immediately and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Deutsche Bank does not render legal or tax advice, and the information contained in this communication should not be regarded as such. --=_alternative 00558E1F852577C8_=--