Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 95914 invoked from network); 29 Jun 2006 12:16:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jun 2006 12:16:52 -0000 Received: (qmail 40437 invoked by uid 500); 29 Jun 2006 12:16:52 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 40417 invoked by uid 500); 29 Jun 2006 12:16:51 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 40408 invoked by uid 99); 29 Jun 2006 12:16:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 05:16:51 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 66.249.92.170 as permitted sender) Received: from [66.249.92.170] (HELO ug-out-1314.google.com) (66.249.92.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 05:16:51 -0700 Received: by ug-out-1314.google.com with SMTP id m3so306111uge for ; Thu, 29 Jun 2006 05:16:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TxwPLvPzZ4k9QSc8Y2ypNHaYb8dTscg2vKHSpoVl/xJyBls6QBcqcT0n82PuOa6ucrtB4BsObel0qsiq2JQRg/RpQlw2yNOwHI7cvTvznPkrXb/3GPAXhw8MT1cElyMxhHZvNtN6eCAiLX0qp0xObNZOJ40+cqcCqQN1D6aa5w0= Received: by 10.67.29.12 with SMTP id g12mr1844437ugj; Thu, 29 Jun 2006 05:16:29 -0700 (PDT) Received: by 10.66.224.1 with HTTP; Thu, 29 Jun 2006 05:16:29 -0700 (PDT) Message-ID: Date: Thu, 29 Jun 2006 13:16:29 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Using selector In-Reply-To: <5091631.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5076858.post@talk.nabble.com> <5091631.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 6/28/06, Vadim Pesochinsky wrote: > > Thanks a lot, I will make use of MultiplexingRequestor. However I am still > having trouble with selectors. How can I select by message types? > > Neither one works: > JMSType='1001' > JMSType='1001' OR JMSType='1002' > > Producer does msg.setJMSType( "1001" ); Thank you. I've written a test case for this and it seems to work fine to me. (See the testJMSPropertySelectors() test). https://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/selector/SelectorTest.java Any chance you could write a JUnit test case demonstrating your issue? -- James ------- http://radio.weblogs.com/0112098/