Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 99766 invoked from network); 6 Sep 2009 11:37:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Sep 2009 11:37:01 -0000 Received: (qmail 90558 invoked by uid 500); 6 Sep 2009 11:37:00 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 90495 invoked by uid 500); 6 Sep 2009 11:37:00 -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 90485 invoked by uid 99); 6 Sep 2009 11:37:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2009 11:37:00 +0000 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 (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; Sun, 06 Sep 2009 11:36:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MkG2n-00047d-1U for users@camel.apache.org; Sun, 06 Sep 2009 04:36:29 -0700 Message-ID: <25316850.post@talk.nabble.com> Date: Sun, 6 Sep 2009 04:36:29 -0700 (PDT) From: sailaja p To: users@camel.apache.org Subject: Using Splitter in CBR MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: spindipr@progress.com X-Virus-Checked: Checked by ClamAV on apache.org Hi All, I am using Camel1.5 version. I am trying to use a splitter inside the Contest Based Router pattern. Below is my Java DSL route. from("jms:queue:test").choice().when().xpath("/book/name").splitter().xpath("/book/price").to("jms:queue:PriceQ").to("direct:BookName").otherwise().to("jms:topic:Invalid"); Whenever I add the splitter after the when processor, I am getting error at Otherwise pattern. Is the way I am coding the route is right? If not, please suggest me the right path. Thanks, Sailaja. -- View this message in context: http://www.nabble.com/Using-Splitter-in-CBR-tp25316850p25316850.html Sent from the Camel - Users mailing list archive at Nabble.com.