From users-return-31509-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Wed Aug 8 13:48:34 2012 Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7609E9CB5 for ; Wed, 8 Aug 2012 13:48:34 +0000 (UTC) Received: (qmail 26010 invoked by uid 500); 8 Aug 2012 13:48:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 25884 invoked by uid 500); 8 Aug 2012 13:48:33 -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 25871 invoked by uid 99); 8 Aug 2012 13:48:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 13:48:33 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2012 13:48:28 +0000 Received: by wgbdq12 with SMTP id dq12so577780wgb.14 for ; Wed, 08 Aug 2012 06:48:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0kArcsWJEuFetRyN2+2cFqtv4sy+3R10ySbPhoy/A9U=; b=zRXDxb7YvwO9VNHwfTxdfKE+1cdk/qYgc0LE7vKXff2A3oEV3vRGrCR4UNOJoNgxG6 RJ7Av1ZO6seVk/1sc/1fzWaQlbtSQa1Thu09V7arC0ovM1QR9zij0RLy3KGmxVBSGEhj g44qkkDvbY6fxlEa5+Vl+o4nP1MlNXAet0+n5It2T59HpN8ZjCKWT6/tz6wSQTM7m1pY RDfOx84ysrz2W2HqT7mLKwkasIEZVM/Byr+Qro063TffyGnGCzV46RV8aBrnxtzEyYJy qotE13kQWd0HO+YRlxeCGrXyvv04ok1a4T6LJ8DQgTqXv518BGUDJTB6VhJT3gDggsYX RUzw== MIME-Version: 1.0 Received: by 10.180.78.2 with SMTP id x2mr2915538wiw.10.1344433687637; Wed, 08 Aug 2012 06:48:07 -0700 (PDT) Received: by 10.194.54.66 with HTTP; Wed, 8 Aug 2012 06:48:07 -0700 (PDT) In-Reply-To: <1344421928585-4654892.post@n4.nabble.com> References: <1306267918220-3548101.post@n4.nabble.com> <1338963111647-4653010.post@n4.nabble.com> <1338984817443-4653021.post@n4.nabble.com> <1344407125813-4654879.post@n4.nabble.com> <1344413683634-4654884.post@n4.nabble.com> <1344421928585-4654892.post@n4.nabble.com> Date: Wed, 8 Aug 2012 14:48:07 +0100 Message-ID: Subject: Re: Queue/Message Fairness as oppose to Client Fairness From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org What you want goes against the grain a bit, the broker wants to dispatch messages as fast as it can for each destination. Using lazyDispatch=true will reduce the queue dispatch loop to what can be immediately sent, so when that is combined with a low prefetch, eg prefetch=1, the minimum number of messages per destination will be processed at a time. On 8 August 2012 11:32, tapan.thapa wrote: > Hello, > > Thanks for the suggestion however i tried with php stomp 1.0 as well as with > Java client and both are not working as expected. > > PHP Client: > PHP consumer get all messages from first queue than second queue and so on. > > Java Client: > Java client is good as it receives 3-4 messages per queue in round robin. > sometime 4-5-10 (Can not predict) messages. > > However i am expecting 1 message from each queue in round robin (Does not > matter if consumer is in java or in php). > > Settings now are: > > maxPageSize="1"> > > > > > > Kindly suggest. > > Regards > Tapan Thapa > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Queue-Message-Fairness-as-oppose-to-Client-Fairness-tp3423122p4654892.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- http://fusesource.com http://blog.garytully.com