From users-return-9362-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Wed Jun 06 16:08:13 2007 Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 71311 invoked from network); 6 Jun 2007 16:08:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 16:08:13 -0000 Received: (qmail 97115 invoked by uid 500); 6 Jun 2007 16:08:15 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 97087 invoked by uid 500); 6 Jun 2007 16:08:15 -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 97078 invoked by uid 99); 6 Jun 2007 16:08:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 09:08:15 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 09:08:11 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Hvy34-0004ek-PA for users@activemq.apache.org; Wed, 06 Jun 2007 09:07:50 -0700 Message-ID: <10991784.post@talk.nabble.com> Date: Wed, 6 Jun 2007 09:07:50 -0700 (PDT) From: Jim_Cross To: users@activemq.apache.org Subject: Re: Message Selector Not Filtering Messages In-Reply-To: <10965883.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jimcross1981@googlemail.com References: <10965883.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Finally found it in Jira...it's an unresolved issue: http://issues.apache.org/activemq/browse/AMQNET-44 The work around, passing in the 3rd argument, works for me Jim_Cross wrote: > > Hi, > > I'm using ActiveMQ with a Java producer and a C# (NMS) consumer. > Everything seems to be working, except my message selectors, which don't > filter out any messages. > For example, if I use the following in my producer: > > TextMessage testMessage = session.createTextMessage(); > testMessage.setStringProperty("URI", > "http://localhost/slide/files/data/test/text.txt"); > testMessage.setStringProperty("SubPath", "data/test"); > testMessage.setText(content); > producer.send(testMessage); > > And this in the consumer: > > IMessageConsumer consumer = session.CreateConsumer(dest, "SubPath = 'x'"); > > I would not expect any messages to flow through, as they should be > filtered by SubPath. However, my consumer receives all of the messages. > Can anyone tell me what I'm doing wrong, or whether there's a way I can > turn up the logging to see why the selector isn't filtering out these > messages? > > As an aside, am I right in thinking you can't create non-temporary topics > using NMS? > > Thanks, > > Jim > > -- View this message in context: http://www.nabble.com/Message-Selector-Not-Filtering-Messages-tf3870553s2354.html#a10991784 Sent from the ActiveMQ - User mailing list archive at Nabble.com.