Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 57619 invoked from network); 16 Sep 2009 08:38:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Sep 2009 08:38:32 -0000 Received: (qmail 62966 invoked by uid 500); 16 Sep 2009 08:38:32 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 62940 invoked by uid 500); 16 Sep 2009 08:38:32 -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 62930 invoked by uid 99); 16 Sep 2009 08:38:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 08:38:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cmoulliard@gmail.com designates 209.85.216.204 as permitted sender) Received: from [209.85.216.204] (HELO mail-px0-f204.google.com) (209.85.216.204) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2009 08:38:23 +0000 Received: by pxi42 with SMTP id 42so4118993pxi.20 for ; Wed, 16 Sep 2009 01:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=1yJ+4ek8NHud72jiTsFwtc+b8bgtnXSbeLY9/xlqNHc=; b=bKL6MwqCSyqGL88ic5/ezbjGDDawKHo1kPuWqK1IjOIhFk6sYwKiooypUZRA3xiAiD uy/v9bDC9W/G+ifuKD67m2yKN0ZPvCrftZDmySqp5nXIXjLW/w88nuHECrhOBEbEpdLw klXJYAy1ufWOJ7xna9pMPoUa3buMZCzn44g0c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=q/LZzBeXYJNe9EgOsGJGNOI4qFlrpFx8oio+HffKZ/e1GyhOmTfFp8MTaIPFPklJIR PzhNy1KHHQiRMSgQAKWnWQC9geiaOUkiU79S4B4Fud+pLKjmS+LGV/bd1rC+6L38M5Mi 1PZU0Izr5p+oCm5AcuIbLtdoQxd4EyXNdUfEw= MIME-Version: 1.0 Received: by 10.140.203.8 with SMTP id a8mr91622rvg.239.1253090282044; Wed, 16 Sep 2009 01:38:02 -0700 (PDT) Date: Wed, 16 Sep 2009 10:38:02 +0200 Message-ID: Subject: Question concerning pollingConsumer usage From: Charles Moulliard To: users@camel.apache.org Content-Type: multipart/alternative; boundary=000e0cd211f221fcf50473add1b5 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd211f221fcf50473add1b5 Content-Type: text/plain; charset=ISO-8859-1 Hi, I will implement a bean component who will play the role of a pollingConsumer. This bean will be called every x minutes from a quartz endpoint. This bean component will read all messages posted in a queue until the last one and create a list of objects who will be used next by marshal function defined in the camel route. Question : Can the method called in my "polling consumer" bean return a list of objects or should it be defined as void ? Regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com --000e0cd211f221fcf50473add1b5--