Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 5200 invoked from network); 23 May 2009 15:18:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 May 2009 15:18:02 -0000 Received: (qmail 48652 invoked by uid 500); 23 May 2009 15:18:15 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 48617 invoked by uid 500); 23 May 2009 15:18:15 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 48607 invoked by uid 500); 23 May 2009 15:18:15 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 48604 invoked by uid 99); 23 May 2009 15:18:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 May 2009 15:18:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 May 2009 15:18:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AF8C1234C044 for ; Sat, 23 May 2009 08:17:51 -0700 (PDT) Message-ID: <1015220911.1243091871717.JavaMail.jira@brutus> Date: Sat, 23 May 2009 08:17:51 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1640) BatchConsumer - Allow consumers to be batch aware In-Reply-To: <847102598.1243022810463.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51869#action_51869 ] Claus Ibsen commented on CAMEL-1640: ------------------------------------ camel-ibatis: 777941. *DONE* > BatchConsumer - Allow consumers to be batch aware > ------------------------------------------------- > > Key: CAMEL-1640 > URL: https://issues.apache.org/activemq/browse/CAMEL-1640 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Affects Versions: 2.0-M1 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.0.0 > > > Most of the consumers can handle batch but they dont decorate the Exchange with this information. > Only the file component does this. > We should expose a {{BatchConsumer}} interface to mark a consumer as being batch capable. > Then this consumer should be able to round up the exchanges beforehand they are processed. This allows us to gather the total number of exchanges in the batch. > And then afterwards loop this list and emit each exchange with information about: current index out of total. > This also makes it much easier to support aggregator afterwards as the aggregator will be able to support BatchConsumer and then know when it has the complete batch aggregated. > In camel-core its the *file* component that should be batch aware. > Other components such as: mail, rss, atom, and many others can support this as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.