Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 28406 invoked from network); 29 Nov 2007 02:44:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2007 02:44:18 -0000 Received: (qmail 16807 invoked by uid 500); 29 Nov 2007 02:44:05 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 16777 invoked by uid 500); 29 Nov 2007 02:44:05 -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 16768 invoked by uid 99); 29 Nov 2007 02:44:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 18:44:05 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Thu, 29 Nov 2007 02:44:07 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IxZNS-0006QO-GD for users@activemq.apache.org; Wed, 28 Nov 2007 18:43:46 -0800 Message-ID: <14018321.post@talk.nabble.com> Date: Wed, 28 Nov 2007 18:43:46 -0800 (PST) From: cd To: users@activemq.apache.org Subject: XPATH selectors? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: chdillon@mindspring.com X-Virus-Checked: Checked by ClamAV on apache.org Hello and i apologise for posting what should be such a simple question but i have been searching around the ActiveMQ site and the web in general all day and have failed so far to figure this out. I am new to both Java and ActiveMQ and decided to use AMQ based largely on the assertion that it would do XPATH filtering based on message content, but i do not get any messages from a Q as soon as i put an XML selector on the MessageConsumer. The messages are on the Q and if i remove the XPATH selector or use a standard header selector i get the messages. I would REALLY appreciate any hints anyone might offer toward finding out why this isn't working. I've been working almost 2 weeks on the assumption that the web site documentation was accurate and i am not finding a lot of other people having problems so i am forced to think i must be doing something stupid. I suspect i am missing a/some components in classpath but i haven't found any docs about what that should be. I have added activemq-optional-4.1.1.jar to the CP with no effect. more details: --i am using AMQ on winXP and JDK 1.6. --i simply downloaded the zip and started the server through the bin/activemq.bat script. --i moved the AMQ directory directly to the root in case it was getting confused by long/spaces file names. --i am sending the messages as TextMessage. --custom property selectors work like a champ. --i started with a well formed xml document and have slowly reduced its complexity until all i have left is this simple fragment: BartSimpson --i have tried every permutation of quotes, escapes, and syntax i can think of to try and get it to use the selector. XPATH '//testNode1[@name=''Bart'']' XPATH '//testNode1 = ''Bart'']' XPATH '//testNode1[. = ''Bart'']' XPATH '/testRoot/testNode1[text() = ''Bart'']' and probably a million more :) thank you *very* much for your time reading all of this, cd -- View this message in context: http://www.nabble.com/XPATH-selectors--tf4894769s2354.html#a14018321 Sent from the ActiveMQ - User mailing list archive at Nabble.com.