Hi Nice route ;) You have to use the static import to get hold of the xpath in Java http://activemq.apache.org/camel/xpath.html
There are samples on the wiki page Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: pratibhaG [mailto:[EMAIL PROTECTED] Sent: 2. juli 2008 07:39 To: [email protected] Subject: How can I replace XML with java configuration? I have following content based routing in XML. How can I replace it with java? <from uri="jbi:endpoint:urn:org:apache:servicemix:tutorial:camel:jmsCpswdprfl1:consumerpswdprfl1"/> <choice> <when> <xpath>/request/password = 'cp'</xpath> <to uri="jbi:endpoint:urn:org:apache:servicemix:tutorial:camel:jmspswd:providerpswd"/> </when> The problem i am facing is for Xpath. I dont know the equivalent in java -- View this message in context: http://www.nabble.com/How-can-I-replace-XML-with-java-configuration--tp18230638s22882p18230638.html Sent from the Camel - Users mailing list archive at Nabble.com.
