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 E097FF732 for ; Wed, 27 Mar 2013 06:47:08 +0000 (UTC) Received: (qmail 67516 invoked by uid 500); 27 Mar 2013 06:47:08 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 67430 invoked by uid 500); 27 Mar 2013 06:47:08 -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 67408 invoked by uid 99); 27 Mar 2013 06:47:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 06:47:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of daniel.guggi@gmail.com designates 209.85.219.52 as permitted sender) Received: from [209.85.219.52] (HELO mail-oa0-f52.google.com) (209.85.219.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Mar 2013 06:47:02 +0000 Received: by mail-oa0-f52.google.com with SMTP id k14so8549655oag.11 for ; Tue, 26 Mar 2013 23:46:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=5+0ZmCuV2nqVqyAUnBKsjlMOaE+m7jF20gWkvhlmQYk=; b=KTjt4X//Qe2E1Rj3jgXyxoYVmBrZi3bwuH93SlfPTnvvDc+Rnz/k9RqdVIZdglyAzA P88IKBM3NPVu2ZLYO2R3u9wp5RNRLIwEW7Rfg8X4LcUp+c5R6yV5uC6k0XUDOFn/ZuRz 5wpmlsx8tvghSgY2danLAfRdFaxCp8bFOBzgGYcdJdulxKjSepxoiDKpbJRcJS2kfX82 gyyPuv9mlwqWZqjZ7jpvRVDrUQva+KXPS0FZ+dm6yLH7LOKyyF1J/ey/ktvvRV6NNr8H uxrodW2xOn5vKMKxf7OemnmICGPE86vDOu9fOe2iGjoJOeqHdRppudMJdzVv697Q3fxj ls3A== MIME-Version: 1.0 X-Received: by 10.60.29.161 with SMTP id l1mr15167042oeh.111.1364366801444; Tue, 26 Mar 2013 23:46:41 -0700 (PDT) Received: by 10.76.172.231 with HTTP; Tue, 26 Mar 2013 23:46:41 -0700 (PDT) In-Reply-To: <61cf5f38.348f.13da9920914.Coremail.suonayi2006@163.com> References: <61cf5f38.348f.13da9920914.Coremail.suonayi2006@163.com> Date: Wed, 27 Mar 2013 07:46:41 +0100 Message-ID: Subject: Re: can we combine message groups and jms selectors From: Daniel Guggi To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=e89a8fb200fa8b25db04d8e266fd X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb200fa8b25db04d8e266fd Content-Type: text/plain; charset=ISO-8859-1 thank your for your info. would i work in theory for my case (because i ensure that all messages with same JMSXGroupID will have same Priority) or would it work generally (even when messages with same JMSXGroupID have different priorities - dont know if that really makes sense tough...)? yes, we also consider using two queues instead of one queue with selectors... Can u please explain whay consumers my get stuck with sparse selector? tia, daniel On Wed, Mar 27, 2013 at 2:59 AM, SuoNayi wrote: > seems work in theory. > Why not using two queues to send the different messages? > It's more easy for problem diagnosis if some trouble is present. > Besides, Do not use sparse selector or your consumers may get stuck. > > > > > At 2013-03-26 22:58:29,"Daniel Guggi" wrote: > >hi, > > > >im curious if it is possible to use message-groups and jms selectors > >together. > > > >example: > > > >i have consumer 'normalPriorityConsumer' for queue "X" with selector > >'JMSProperty >= 4' > >i have consumer 'lowPrioritiyConsumer' for queue "X" with selector > >'JMSProperty < 4' > > > >all messages send to queue "X" will have the JMSXGroupID header set. > > > >would activemq be capable of sending to the appropriate consumer based on > >the priority? > > > >in my scenario this might work, because we ensure that for a given > >jmsxGroupID the priority is always the same for all messages... > > > >ty, > >daniel > --e89a8fb200fa8b25db04d8e266fd--