Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 44354 invoked from network); 23 Jan 2007 18:12:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2007 18:12:44 -0000 Received: (qmail 51104 invoked by uid 500); 23 Jan 2007 18:12:42 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 50953 invoked by uid 500); 23 Jan 2007 18:12:41 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 50938 invoked by uid 99); 23 Jan 2007 18:12:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 10:12:41 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jan 2007 10:12:31 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H9Q7v-0003xO-CO for activemq-users@geronimo.apache.org; Tue, 23 Jan 2007 10:12:11 -0800 Message-ID: <8527141.post@talk.nabble.com> Date: Tue, 23 Jan 2007 10:12:11 -0800 (PST) From: "tim.geldart" To: activemq-users@geronimo.apache.org Subject: Re: Stomp durable topic do not UNSUB In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tim.geldart@inovis.com References: <8458129.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I appreciate the feedback. However, the following comments raise additional questions: James.Strachan wrote: > > So to stop collecting messages for durable subscriptions, you need to > delete the subscription via the MBeans - i.e. its an adminstrative > issue (rather than via stomp/jms). > > If you want to start/stop subscriptions within a client, then don't > use durable topics, use non-persistent subscriptions > 1. When I use the distribution's example to create a durable subscription, then modify ConsumerTool.java to call session.unsubscribe() immediately prior to session.close(), the JMX console shows the subscription as deleted after executing "ant consumer". This appears to be identical behavior to deleting the subscription via MBeans (and is not what a stomp UNSUB does.. even after applying AMQ-1077). Would one be mistaken to expect stomp client behavior to be consistent with openwire client behavior? 2. After manually deleting a durable subscription, the broker appears to continue "remembering" published messages, even if there are no active subscriptions to receive the messages. If no other subscriptions are subsequently created, then continued publishing of messages to the unsubscribed topic will eventually use 100% of the memoryManager's configured memory (in my case, 200 MB), after which point, the only way to recover is to bounce the broker. Should one expect the manual deletion of a durable subscription to yield the same behavior as if the subscription never existed? Otherwise, the only adminstrative option to ridding the system of an unwanted subscription appears to involve bouncing the broker. -Tim -- View this message in context: http://www.nabble.com/Stomp-durable-topic-do-not-UNSUB-tf3042823.html#a8527141 Sent from the ActiveMQ - User mailing list archive at Nabble.com.