Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 87265 invoked from network); 25 Aug 2006 16:58:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Aug 2006 16:58:28 -0000 Received: (qmail 64341 invoked by uid 500); 25 Aug 2006 16:58:28 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 64326 invoked by uid 500); 25 Aug 2006 16:58:28 -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 64317 invoked by uid 99); 25 Aug 2006 16:58:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 09:58:28 -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 64.233.184.227 as permitted sender) Received: from [64.233.184.227] (HELO wr-out-0506.google.com) (64.233.184.227) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2006 09:58:27 -0700 Received: by wr-out-0506.google.com with SMTP id i21so173231wra for ; Fri, 25 Aug 2006 09:58:06 -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=cweqbI9SWIi9C2aY/gzB8f5lz793pFUfGxeRBeMaRZCv3PUlaNsGf5gYqjlqO9US9hxkwHFQE0h4HddffkFj6HaOAmJ/jd1leWEhyYYSowu/7nfE9HrseSCduM62KlLyFS5NOmULR1ouDV8GX3YyzAv+peDX1vBbWxE5j/xl/Lg= Received: by 10.90.25.3 with SMTP id 3mr711246agy; Fri, 25 Aug 2006 09:58:06 -0700 (PDT) Received: by 10.90.86.4 with HTTP; Fri, 25 Aug 2006 09:58:06 -0700 (PDT) Message-ID: Date: Fri, 25 Aug 2006 17:58:06 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Message selectors In-Reply-To: <5987308.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: <5987308.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 8/25/06, StanleyH wrote: > > I have a string property typeOfMessage. > I would like to filter messages typeOfMessage="NewMessageNotify" > how do I create a consumer from a session with the correct selector string. session.createConsumer(queue, "typeOfMessage = 'NewMessageNotify' "); -- James ------- http://radio.weblogs.com/0112098/