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 2ECB2183A5 for ; Fri, 11 Dec 2015 07:51:47 +0000 (UTC) Received: (qmail 90652 invoked by uid 500); 11 Dec 2015 07:51:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 90616 invoked by uid 500); 11 Dec 2015 07:51:46 -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 90605 invoked by uid 99); 11 Dec 2015 07:51:46 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Dec 2015 07:51:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2B51F1A24A1 for ; Fri, 11 Dec 2015 07:51:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.287 X-Spam-Level: ** X-Spam-Status: No, score=2.287 tagged_above=-999 required=6.31 tests=[SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 1n6hmT1Usl-A for ; Fri, 11 Dec 2015 07:51:36 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 1330B429D0 for ; Fri, 11 Dec 2015 07:51:34 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id A63D03D01BD2 for ; Thu, 10 Dec 2015 23:51:01 -0800 (PST) Date: Thu, 10 Dec 2015 23:34:07 -0800 (PST) From: frankie_hr To: users@activemq.apache.org Message-ID: <1449819247920-4704881.post@n4.nabble.com> In-Reply-To: References: <1449665703293-4704813.post@n4.nabble.com> Subject: Re: Selective consuming of priority messages with message groups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jose, I'm using the prioritizedMessages=3Dtrue because of the JMS grouping featur= e.=20 In the application I'm running, one of the most important features is that messages with the same group ID are not processed in parallel, thus the message grouping ensuring the same consumer always gets the message with th= e same ID, so that they are processed sequentially. The most recent requirement was to additionally separate processing of messages with the low and high priority, but by still keeping the message grouping rule defined above. What I meant to achieve that way was for different consumers to process low and high priority message, with the same group ID, but while keeping the sequential message processing order. Any other ideas on how to achieve that? One other idea of mine was to define a route which would say something like this: from("jms:queue:test?concurrentConsumers=3D1") .choice() .when(header("JMSPriority").isGreaterThanOrEqualTo(4)) .to("jms:queue:normalPriority") .otherwise() .to("jms:queue:lowPriority") .endChoice(); However, in that case, the messages consumed from the normalPriority and lowPriority queues might be processed in parallel, which I'm trying to avoid. Regards, Frankie Jose Mar=C3=ADa Zaragoza wrote > A question about your code: >=20 > why do you configure prioritizedMessages=3D true on your broker and also > use consumers with a selector parameter ? > I guess that to use consumers with a selector parameter is for > avoiding to set prioritizedMessages=3D true >=20 > With prioritizedMessages=3D true , the broker try to deliver the > messages in order by priority >=20 > It's only curiosity >=20 > Regards -- View this message in context: http://activemq.2283324.n4.nabble.com/Selecti= ve-consuming-of-priority-messages-with-message-groups-tp4704813p4704881.htm= l Sent from the ActiveMQ - User mailing list archive at Nabble.com.