Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 64273 invoked from network); 26 Feb 2009 17:31:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 17:31:06 -0000 Received: (qmail 33811 invoked by uid 500); 26 Feb 2009 17:31:06 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 33789 invoked by uid 500); 26 Feb 2009 17:31:06 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 33778 invoked by uid 500); 26 Feb 2009 17:31:06 -0000 Delivered-To: apmail-activemq-camel-user@activemq.apache.org Received: (qmail 33775 invoked by uid 99); 26 Feb 2009 17:31:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 09:31:06 -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 (athena.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, 26 Feb 2009 17:30:58 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lck4D-0005t3-OO for camel-user@activemq.apache.org; Thu, 26 Feb 2009 09:30:37 -0800 Message-ID: <22229308.post@talk.nabble.com> Date: Thu, 26 Feb 2009 09:30:37 -0800 (PST) From: Ashwin Karpe To: camel-user@activemq.apache.org Subject: Re: Combination of filters In-Reply-To: <22201686.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: askarpe@progress.com References: <22201686.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, No. There is no simple way to do this unless you do this using something like from("SourceURL"). filter().method("myBean", "isAtrributeQueue13or14"). to("TargetURL"); Obviously you will need to parse the payload and determine whether the queue attribute is 13 or 14. You can also use a scripting language to achieve the above effect. Hope this helps. Cheers, Ashwin... david_geary wrote: > > Hi, > > I'm using an xpath filter in the xml configuration eg > > > //cs:case/@queue="13" > > > > What's the easiest way to combine filters eg I want to accept it if its on > queue 13 OR 14 (or if on queue 13 AND some other attribute is a particular > value?) > > I know I can set up separate filters and chain them to get 'AND' logic or > achieve 'OR' logic by putting the results onto the same seda queue say but > is there an easier general way to do this with the or xml > syntax? > > Thanks > > Dave > ----- --- Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence Progress Software Corporation 14 Oak Park Drive Bedford, MA 01730 --- +1-972-304-9084 (Office) +1-972-971-1700 (Mobile) ---- Blog: http://opensourceknowledge.blogspot.com/ -- View this message in context: http://www.nabble.com/Combination-of-filters-tp22201686p22229308.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.