Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 38924 invoked from network); 22 Apr 2009 14:57:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 14:57:05 -0000 Received: (qmail 91369 invoked by uid 500); 22 Apr 2009 14:57:04 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 91349 invoked by uid 500); 22 Apr 2009 14:57:04 -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 91333 invoked by uid 500); 22 Apr 2009 14:57:04 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 91325 invoked by uid 99); 22 Apr 2009 14:57:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 14:57:04 +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; Wed, 22 Apr 2009 14:56:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6319A234C003 for ; Wed, 22 Apr 2009 07:56:33 -0700 (PDT) Message-ID: <1424948273.1240412193390.JavaMail.jira@brutus> Date: Wed, 22 Apr 2009 07:56:33 -0700 (PDT) From: "Joe Luo (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-1534) camel-ibatis - option to filter out empty select results In-Reply-To: <1996487443.1239854492756.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-1534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joe Luo updated CAMEL-1534: --------------------------- Attachment: Camel-1534.patch Hi, Claus Here is the patch for this issue. I added an option "routeEmptyResultSet" onto polling consumer so it will not send an empty resultset to the next hop by default. However, if an iterator is used ("useIterator=true"), the "routeEmptyResultSet" won't have any effect as the empty list will not contain any individual object at all. > camel-ibatis - option to filter out empty select results > -------------------------------------------------------- > > Key: CAMEL-1534 > URL: https://issues.apache.org/activemq/browse/CAMEL-1534 > Project: Apache Camel > Issue Type: Improvement > Components: camel-ibatis > Affects Versions: 1.6.0 > Reporter: Claus Ibsen > Priority: Minor > Fix For: 2.1.0 > > Attachments: Camel-1534.patch > > > The camel-ibatis component routes any result from the database so if a SELECT query returns 0 rows Camel will route an exchange. > We should add an option to iBatis to allow end users to filter out empty results so Camel only route an Exchange if there are > 0 rows. > See nabble: > http://www.nabble.com/IBatis-component-inconsistency-td23045297.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.