Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 13103 invoked from network); 13 Sep 2006 00:05:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 00:05:24 -0000 Received: (qmail 87258 invoked by uid 500); 13 Sep 2006 00:05:24 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 87241 invoked by uid 500); 13 Sep 2006 00:05:24 -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 87232 invoked by uid 99); 13 Sep 2006 00:05:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 17:05:24 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 66.249.82.230 as permitted sender) Received: from [66.249.82.230] (HELO wx-out-0506.google.com) (66.249.82.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 17:05:23 -0700 Received: by wx-out-0506.google.com with SMTP id i27so2203384wxd for ; Tue, 12 Sep 2006 17:05:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CB+cnaufovLAXmaTgjweCOPTGkavccaG0AY/X/thgZAiQIZja/4lK7DEVuqvvUssC8rZnN6vHr3FWJidLfDekceWGXguawOs9QKzpo4slQtg5EwYJpV61gHI91GLpzX395licY2F6tJRjM54/vGFJSr74WHsFbrQoyMqVTYK1X4= Received: by 10.90.65.11 with SMTP id n11mr2483482aga; Tue, 12 Sep 2006 17:05:02 -0700 (PDT) Received: by 10.90.86.4 with HTTP; Tue, 12 Sep 2006 17:05:02 -0700 (PDT) Message-ID: Date: Wed, 13 Sep 2006 01:05:02 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: A full-on example of creating a 'durable' subscriber In-Reply-To: <6275552.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6275552.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/12/06, robottaway wrote: > > I have scoured the forum (and the net) for a good example of how exactly a > durable topic subscriber should be set up. Using the JMS API its via this method.... http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Session.html#createDurableSubscriber(javax.jms.Topic,%20java.lang.String,%20java.lang.String,%20boolean) or you can create one using ActiveMQ's MBeans http://incubator.apache.org/activemq/maven/activemq-core/apidocs/org/apache/activemq/broker/jmx/BrokerViewMBean.html#createDurableSubscriber(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String) > From what I have gleamed from the > forum I have been able to set up a durable subscription from a Smix JBI > component (org.apache.servicemix.components.jms.JmsInUsingJCABinding). > Unfortunately this only partially works. Once the durable subscription is > made, and the consumer brought down, messages are being shown in jconsole as > queueing up. I see the queueing in the subscription's > DurableSubscriptionView component, in it's attribute 'PendingQueueSize'. > This component is under "${Broker Name}/Subscription/true" in my jconsole > view. Once my Smix subscriber is back up it gets one, and only one message. > Any other messages that where posted to the topic while the consumer was > down do not get consumed. > > Sorry if this is actually more a Smix question.... Not sure about the rest of your question - what does your ServiceMix subscriber do? Is it completing the message exchange? -- James ------- http://radio.weblogs.com/0112098/