From dev-return-17057-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Sat Sep 26 13:47:39 2009 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 1675 invoked from network); 26 Sep 2009 13:47:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Sep 2009 13:47:39 -0000 Received: (qmail 21686 invoked by uid 500); 26 Sep 2009 13:47:39 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 21646 invoked by uid 500); 26 Sep 2009 13:47:39 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 21636 invoked by uid 99); 26 Sep 2009 13:47:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2009 13:47:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bruce.snyder@gmail.com designates 209.85.218.224 as permitted sender) Received: from [209.85.218.224] (HELO mail-bw0-f224.google.com) (209.85.218.224) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2009 13:47:28 +0000 Received: by bwz24 with SMTP id 24so2624050bwz.38 for ; Sat, 26 Sep 2009 06:47:08 -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:message-id:subject:from:to:content-type; bh=Gb0cK5b969ZvdHF3kc1cjfzjCcJGCrAqQaHAq6GqOgY=; b=dM9QALu6DbJXD63UUQFZeE920YMgZ5BoqamnFLAzHaytbEb8BGv8dyGvT6mdMi3Bgf ElzkxCcN+EUewtk2Indgv2yzjFdDyozqHUEgsjP8Jd63UYRf7gIkHBDLWpcGG9SUlIBC dVf/jB9b3tJHPrAUajQZyPtFe1l2d9ELALqhU= 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=JbomaUxlfVeVXIyC9T4X49jlWB5jv0jCDppAW8J7Rbx3B1ffhwOJ4sj2CCN0+jlsD0 Vk6kzit+rUoaZdl4xqjaKFZHOdszPynVf11dxFyugR+njl+bH4djUOXccfZD/HeHj/gf n+gLTYNdKd9v0Su2tUAAIX6qtRQulv1MIVz2c= MIME-Version: 1.0 Received: by 10.223.3.4 with SMTP id 4mr345934fal.30.1253972828057; Sat, 26 Sep 2009 06:47:08 -0700 (PDT) In-Reply-To: <25622225.post@talk.nabble.com> References: <25530088.post@talk.nabble.com> <25530503.post@talk.nabble.com> <25531023.post@talk.nabble.com> <1253701187.194330623@192.168.1.35> <25622225.post@talk.nabble.com> Date: Sat, 26 Sep 2009 07:47:08 -0600 Message-ID: <7b3355cb0909260647y89133d9m70d49ebbc860da3@mail.gmail.com> Subject: Re: Horizontally scaling JMS listener/consumer application.....in Active MQ environment From: Bruce Snyder To: dev@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Sep 25, 2009 at 10:28 PM, G1 wrote: > > if I can have 2 consumer's on a queue (say A and B) and the message is > gauranteed to be delivered to only one of > ..... does the AMQ broker decide which one > ..... can I as the AMQ user (publisher) control which consumer shud receive > (in effect achieve a load balance) In addition to the prefetch, there are options to make a consumer exclusive: http://activemq.apache.org/exclusive-consumer.html You can also configure consumers to use a weighted priority: http://activemq.apache.org/consumer-priority.html Bruce -- perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E