Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 101F19696 for ; Wed, 19 Oct 2011 09:26:35 +0000 (UTC) Received: (qmail 81990 invoked by uid 500); 19 Oct 2011 09:26:34 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 81841 invoked by uid 500); 19 Oct 2011 09:26:33 -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 81832 invoked by uid 99); 19 Oct 2011 09:26:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 09:26:31 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 09:26:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A1EC2310F95 for ; Wed, 19 Oct 2011 09:26:10 +0000 (UTC) Date: Wed, 19 Oct 2011 09:26:10 +0000 (UTC) From: "Claus Ibsen (Commented) (JIRA)" To: dev@camel.apache.org Message-ID: <371804859.9900.1319016370664.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <978708589.2229.1317627873999.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-4508) Add option for scheduled polling consumer to emit an null message if there was no messages to poll MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-4508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130466#comment-13130466 ] Claus Ibsen commented on CAMEL-4508: ------------------------------------ Rich also add a note about this new option in the release notes. The community have frankly asked from time to time about this improvement. So its about time we listen :) > Add option for scheduled polling consumer to emit an null message if there was no messages to poll > -------------------------------------------------------------------------------------------------- > > Key: CAMEL-4508 > URL: https://issues.apache.org/jira/browse/CAMEL-4508 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Fix For: 2.9.0 > > Attachments: CAMEL-4508.patch > > > For example when people poll files, then they may want to react if there is no files to pickup. Currently you would have to use a poll strategy, but we should add an option you can configure on the endpoint, to have it emit an null message instead. > sendEmptyMessageWhenIdle - false - If this option is true, and there was no messages to poll, then we simulate processing a single message, by sending an empty message. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira