Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 20697 invoked from network); 3 Apr 2011 06:56:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2011 06:56:16 -0000 Received: (qmail 40734 invoked by uid 500); 3 Apr 2011 06:56:15 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 40710 invoked by uid 500); 3 Apr 2011 06:56:14 -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 40702 invoked by uid 99); 3 Apr 2011 06:56:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Apr 2011 06:56:11 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of ali@pagerduty.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Apr 2011 06:56:04 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q6HDq-0005lq-VL for users@activemq.apache.org; Sat, 02 Apr 2011 23:55:42 -0700 Date: Sun, 3 Apr 2011 01:55:42 -0500 (CDT) From: kapitalx To: users@activemq.apache.org Message-ID: <1301813742955-3423122.post@n4.nabble.com> Subject: Queue/Message Fairness as oppose to Client Fairness MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I have 1 broker, 1 consumer, many queues. the queues are arbitrary such as ACCOUNT_ID.1 ACCOUNT_ID.2 etc. I'm trying to avoid 1 account flooding its queue and starving the other accounts. If the queues look like this (items in array are the messages) ACCOUNT_ID.1 = [ 1a, 1b, 1c, 1d ] ACCOUNT_ID.2 = [ 2a, 2b, 2c, 2d ] ACCOUNT_ID.3 = [ 3a, 3b, 3c, 3d ] I want the consumer to receive messages in a fair order such as = 1a, 2a, 3a, 1b, 2b, 3b, ... roundRobinDispatchPolicy does not achieve this, it seems to be designed to alternate messages between multiple consumers, but the single consume will just receive = 1a, 1b, 1c, 1d, 2a, 2b ... How would I do this? Thanks. -- View this message in context: http://activemq.2283324.n4.nabble.com/Queue-Message-Fairness-as-oppose-to-Client-Fairness-tp3423122p3423122.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.