Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 19475 invoked from network); 24 May 2006 14:54:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 May 2006 14:54:33 -0000 Received: (qmail 54983 invoked by uid 500); 24 May 2006 14:54:32 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 54957 invoked by uid 500); 24 May 2006 14:54:32 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 54948 invoked by uid 99); 24 May 2006 14:54:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 07:54:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 07:54:31 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7B2677141E0 for ; Wed, 24 May 2006 14:53:51 +0000 (GMT) Message-ID: <32206941.1148482431501.JavaMail.jira@brutus> Date: Wed, 24 May 2006 14:53:51 +0000 (GMT+00:00) From: "Kyle Himmerick (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Created: (AMQ-723) Generate Advisory Messages to setup tear down producer based on consumer activity MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Generate Advisory Messages to setup tear down producer based on consumer activity --------------------------------------------------------------------------------- Key: AMQ-723 URL: https://issues.apache.org/activemq/browse/AMQ-723 Project: ActiveMQ Type: New Feature Components: Broker Versions: 4.0 Reporter: Kyle Himmerick Fix For: 4.1 Use Case is a custom producer is setup for each topic and should be shut down when there are no subscribers left. With the getConsumerAdvisoryTopic I can receive messages when a specific subscriber joins or leaves. So I can figure out if a consumer is the first, but it would be nice to receive a separate message here. Currently there is nothing that generates advisory messages when there are no subscribers left. The getNoTopicConsumersAdvisoryTopic() only fires when a message is sent to a topic with no consumers, like dead letter queue. A separate advisory message should be fired when the last subscriber leaves. Ideally we could set a delay for this advisory message, so it could fire if the ConsumerCount remained at 0 for x msec/min. This would prevent unnecessary tear down/setup of the producer. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira