Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 32063 invoked from network); 21 Apr 2010 17:13:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Apr 2010 17:13:01 -0000 Received: (qmail 93966 invoked by uid 500); 21 Apr 2010 17:13:01 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 93930 invoked by uid 500); 21 Apr 2010 17:13:01 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 93922 invoked by uid 99); 21 Apr 2010 17:13:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 17:13:01 +0000 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 209.85.218.215 as permitted sender) Received: from [209.85.218.215] (HELO mail-bw0-f215.google.com) (209.85.218.215) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 17:12:56 +0000 Received: by bwz7 with SMTP id 7so7343800bwz.16 for ; Wed, 21 Apr 2010 10:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=g/Q3C6expIOWBUCt7CxDVvHa0n9o7WT0vTcfPYDWkV8=; b=i1OMkt2hFbzCmV0KW0rAptYC/sVS9wOvNH6vSYCid/Xgu6uXEIX1eeYCEahc+KG5Pw ozY56WaQA8FAtrMtFPToLMp5/vE+l/M/1aJhWzpTUPvF3rPuxKBZ4w7JH9eKCvUnXc41 wEK4zSjURNlpwAtLHpZoAaZs0UrBdWn8PpZWo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EWobnV9um5YdGT6RgtBeeTf2jpEFCEz9WastIk8X3Unrcv7JebNtTXd94epgoi66Sb SujTwWodkU04QxFglUluPQJ3Uk+GMNAgjGn0J9wn1kzzkcNbz5E0QAfRDkUv9gVjG6VH h77H72FgaFI4D3FEjEt12kg0NVSguaYwrYaN4= MIME-Version: 1.0 Received: by 10.204.65.79 with HTTP; Wed, 21 Apr 2010 10:12:35 -0700 (PDT) In-Reply-To: <28288049.post@talk.nabble.com> References: <28288049.post@talk.nabble.com> Date: Wed, 21 Apr 2010 18:12:35 +0100 Received: by 10.204.134.87 with SMTP id i23mr6890575bkt.125.1271869955250; Wed, 21 Apr 2010 10:12:35 -0700 (PDT) Message-ID: Subject: Re: Understanding the Exclusive Consumer From: Gary Tully To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=0015174bf0eee21b0b0484c24c51 --0015174bf0eee21b0b0484c24c51 Content-Type: text/plain; charset=ISO-8859-1 exclusive consumer is a simple solution to the case where there are many consumers but only one should be active at any time. Rather than some application logic keeping track of which one should be active, they all have a go and the broker ensures exclusive access. So each consumer connects but only one of them gets the exclusive lock and gets the messages. When it dies, the next consumer in line gets the messages. If effectively allows consumers to stack waiting for the current consumer to die. On 21 April 2010 16:35, TonyTobin wrote: > > In the ActiveMQ doc http://activemq.apache.org/exclusive-consumer.html it > states > > The broker will pick a single MessageConsumer to get all the messages for a > queue to ensure ordering. If that consumer fails, the broker will auto > failover and choose another consumer. > > Is this a consumer master slave relationship, the broker will send all > messages to the designated consumer, and the consumer passes the messages > onto the other consumers. Or does the broker send the messages to all the > consumers, but only one consumer acknowledges them, so if that consumer > dies the other consumer can then pick up where the first consumer died. > > If there is a link that covers Queue consumer clusters in more depth, I > would be grateful if you could post it. > > Thanks Tony > > Thanks Tony > > > -- > View this message in context: > http://old.nabble.com/Understanding-the-Exclusive-Consumer-tp28288049p28288049.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source Integration http://fusesource.com --0015174bf0eee21b0b0484c24c51--