Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 93161 invoked from network); 10 Sep 2010 09:09:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Sep 2010 09:09:02 -0000 Received: (qmail 77098 invoked by uid 500); 10 Sep 2010 09:09:02 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 76896 invoked by uid 500); 10 Sep 2010 09:08:59 -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 76816 invoked by uid 99); 10 Sep 2010 09:08:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 09:08:57 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,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.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qy0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 09:08:52 +0000 Received: by qyk30 with SMTP id 30so10279398qyk.2 for ; Fri, 10 Sep 2010 02:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=OI7hWbYKQ83/SfrSYFwnGqqD4mUeAZQOUB9YA+iKB4o=; b=jIfy48wAmxY8FNQ97o3qztpllB1LauebVIVOaHtdkLKCfoWRSZ5JuwREeoz57AAHZS Wm/jTNxrH7dV8rRlHn7YH2x798ke2dlu9N4iZS8pK6tB2UvNtUeHQqKvdo+Rmi32AfKl e3a3H9msLulrEcbbMSrIX6c55LW32AQYrAvSw= 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:content-transfer-encoding; b=rTSbWQjqje9n4Vabi1oob4sixkJ4p7NB8y4+0QUVn2ujYszU9Aj+f+tEQOvVdr3J6l jLO41+d+XmBF39pUGSx1bQPrEa96QnaJwauMwdZTL+KcN2rw0Q+gUpPp/ZWCseBcGDwJ mz8HXXXxWvqnTPD0NmBEbE+bXmDFfQ02etQhY= MIME-Version: 1.0 Received: by 10.224.65.95 with SMTP id h31mr184017qai.116.1284109710574; Fri, 10 Sep 2010 02:08:30 -0700 (PDT) Received: by 10.229.71.198 with HTTP; Fri, 10 Sep 2010 02:08:30 -0700 (PDT) In-Reply-To: References: <1283967892715-2531722.post@n4.nabble.com> Date: Fri, 10 Sep 2010 10:08:30 +0100 Message-ID: Subject: Re: Consumer is not able to pick messages from queue From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The named queue concept can be realized in configuration using filtered destination that use selectors. see; http://activemq.apache.org/virtual-destinations.html#VirtualDestinations-Us= ingfiltereddestinations As the selectors are evaluated at send time there is no limit imposed by sparse matching. On 9 September 2010 21:19, Fredrik Jonson wrote: > Gary Tully wrote: > >> =A0yea, this is a known issue with sparse selectors. increasing the >> =A0maxPageSize via a destination policy entry for that queue will help a= s >> =A0it will ensure that more messages are held in memory for dispatch. > > Well, yes it helps, but only as long as the message your selector wants > can be found within the configured page size. > >> =A0see: the comments on >> =A0http://trenaman.blogspot.com/2009/01/message-selectors-and-activemq.h= tml > > The last sentence on the above post offer a very good alternative. If you= need > to adress messages by type and must be able to handle a backlog bigger th= an > what is possible to contain in the maxPageSize, replace your selectors wi= th > separate named queues, each specific for whatever you selected for before= . > > This assumes that you do not have too many selectors though, and obviousl= y > that your selector queries can be mapped to named queues. > > -- > Fredrik Jonson > > --=20 http://blog.garytully.com Open Source Integration http://fusesource.com