Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 54037 invoked from network); 23 Jun 2006 11:05:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jun 2006 11:05:40 -0000 Received: (qmail 27042 invoked by uid 500); 23 Jun 2006 11:05:40 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 27025 invoked by uid 500); 23 Jun 2006 11:05:39 -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 27016 invoked by uid 99); 23 Jun 2006 11:05:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2006 04:05:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2006 04:05:39 -0700 Received: by ug-out-1314.google.com with SMTP id m3so1009786uge for ; Fri, 23 Jun 2006 04:05:17 -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=pzA0U9v8E/jy2MgkOWPZTp1cZbADgLd1u+IWWjDyhqv5msG7MrvBzKfYnyUsewxLRfyPb8mrkVd1r3OJLzQT4pLtVdj+11fN2haSh40hf4djLv0sEL4X0TXfed8g0a4a6hT91D8Bw06qSljaXMOyXLQyKujvaIombrtbbZ8zneU= Received: by 10.67.101.10 with SMTP id d10mr952066ugm; Fri, 23 Jun 2006 04:05:16 -0700 (PDT) Received: by 10.66.224.1 with HTTP; Fri, 23 Jun 2006 04:05:16 -0700 (PDT) Message-ID: Date: Fri, 23 Jun 2006 13:05:16 +0200 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Clustering Topic Consumers In-Reply-To: <5009495.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: <5009495.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 The JMS specification mandates that a durable topic subscription requires a unique clientID and subscriber name. So you cannot create 2 MessageConsumer instances for the same durable topic. A workaround is to use a queue for each logical consumer. You can use composite destinations (or add a virtual destination interceptor) to map one logical 'topic' to multiple real queues that can be load balanced across a cluster. http://incubator.apache.org/activemq/composite-destinations.html So whenever folks want 'load balancing' of messages, they want a queue really. FWIW one day I'd like us to have an implementation of durable topics where a durable topic subscription can be exposed as a virtual JMS queue - so it can be browsed & load balanced. http://issues.apache.org/activemq/browse/AMQ-452 On 6/23/06, enortham wrote: > > Does anybody know if it is possible to have two nodes in an app server > cluster consume messages on the same topic and subscription without > consuming the same messages? Basically I want to use topics in a clustered > app server environment and not have the nodes in the cluster consume the > same messages. > > If it's not possible has anyone found any interesting workarounds? I was > thinking of using composite destinations but the downside is that the > producer needs to be updated any time a new consumer would be added. > -- > View this message in context: http://www.nabble.com/Clustering-Topic-Consumers-t1835532.html#a5009495 > Sent from the ActiveMQ - User forum at Nabble.com. > > -- James ------- http://radio.weblogs.com/0112098/