Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C2F8EDB78 for ; Thu, 13 Sep 2012 08:43:56 +0000 (UTC) Received: (qmail 6064 invoked by uid 500); 13 Sep 2012 08:43:56 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 5916 invoked by uid 500); 13 Sep 2012 08:43:56 -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 5901 invoked by uid 99); 13 Sep 2012 08:43:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 08:43:55 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mikko.wuokko@accenture.com designates 65.55.88.15 as permitted sender) Received: from [65.55.88.15] (HELO tx2outboundpool.messaging.microsoft.com) (65.55.88.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2012 08:43:48 +0000 Received: from mail240-tx2-R.bigfish.com (10.9.14.248) by TX2EHSOBE013.bigfish.com (10.9.40.33) with Microsoft SMTP Server id 14.1.225.23; Thu, 13 Sep 2012 08:43:26 +0000 Received: from mail240-tx2 (localhost [127.0.0.1]) by mail240-tx2-R.bigfish.com (Postfix) with ESMTP id E9C533201D8 for ; Thu, 13 Sep 2012 08:43:26 +0000 (UTC) X-Forefront-Antispam-Report: CIP:170.252.43.196;KIP:(null);UIP:(null);IPV:NLI;H:amrxe3001.dir.svc.accenture.com;RD:amrxe3001.accenture.com;EFVD:NLI X-SpamScore: -10 X-BigFish: VPS-10(zzc85fh1403Rzz1202h1d1ah1d2ahzz17326ah8275bh8275dhz2fh2a8h668h839hd25hf0ah107ah1288h12a5h12bdh1155h) Received-SPF: pass (mail240-tx2: domain of accenture.com designates 170.252.43.196 as permitted sender) client-ip=170.252.43.196; envelope-from=mikko.wuokko@accenture.com; helo=amrxe3001.dir.svc.accenture.com ;ccenture.com ; Received: from mail240-tx2 (localhost.localdomain [127.0.0.1]) by mail240-tx2 (MessageSwitch) id 1347525802714344_528; Thu, 13 Sep 2012 08:43:22 +0000 (UTC) Received: from TX2EHSMHS043.bigfish.com (unknown [10.9.14.249]) by mail240-tx2.bigfish.com (Postfix) with ESMTP id 98F1942005C for ; Thu, 13 Sep 2012 08:43:22 +0000 (UTC) Received: from amrxe3001.dir.svc.accenture.com (170.252.43.196) by TX2EHSMHS043.bigfish.com (10.9.99.143) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 13 Sep 2012 08:43:19 +0000 Received: from AMRXH3006.dir.svc.accenture.com (10.63.34.50) by amrxe3001.accenture.com (10.63.35.191) with Microsoft SMTP Server id 8.3.213.0; Thu, 13 Sep 2012 04:43:18 -0400 Received: from email.accenture.com (170.248.176.22) by AMRXH3006.dir.svc.accenture.com (10.63.34.76) with Microsoft SMTP Server (TLS) id 8.3.213.0; Thu, 13 Sep 2012 04:43:18 -0400 Received: from 048-CH1MPN2-222.048d.mgd.msft.net ([169.254.2.13]) by 048-CH1MMR1-009.048d.mgd.msft.net ([170.248.176.22]) with mapi id 14.02.0309.003; Thu, 13 Sep 2012 03:43:18 -0500 From: To: Subject: Preventing empty results from MyBatis producer being forwarded Thread-Topic: Preventing empty results from MyBatis producer being forwarded Thread-Index: Ac2Ri8olFrzuUawPTZWavI1f9AocoA== Date: Thu, 13 Sep 2012 08:43:18 +0000 Message-ID: <5A95E3CBBE1A2F4FB6BD9265217967F410149FD4@048-CH1MPN2-222.048d.mgd.msft.net> Accept-Language: fi-FI, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [88.194.7.201] Content-Type: multipart/alternative; boundary="_000_5A95E3CBBE1A2F4FB6BD9265217967F410149FD4048CH1MPN222204_" MIME-Version: 1.0 X-OriginatorOrg: accenture.com X-Virus-Checked: Checked by ClamAV on apache.org --_000_5A95E3CBBE1A2F4FB6BD9265217967F410149FD4048CH1MPN222204_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi. I have a route similar to the polling example on MyBatis component page: from("timer://pollTheDatabase?delay=3D30000").to("mbatis:selectAllAccounts"= ).to("activemq:queue:allAccounts"); When I run Camel I see that also the empty resultsets are being sent to MQ.= This causes redundant messages and data transfer and I would like to avoid= that. The MyBatis docs tell about option "consumer.routeEmptyResultSet" wh= ich sadly works only for producers. Is there a way to prevent sending the empty results sets to the next step? = I tried to fondle a bit with the .choice(), but found no solution. Regards, Mikko ________________________________ Subject to local law, communications with Accenture and its affiliates incl= uding telephone calls and emails (including content), may be monitored by o= ur systems for the purposes of security and the assessment of internal comp= liance with Accenture policy. ___________________________________________________________________________= ___________ www.accenture.com --_000_5A95E3CBBE1A2F4FB6BD9265217967F410149FD4048CH1MPN222204_--