camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: How can I replace XML with java configuration?
Date Wed, 02 Jul 2008 12:33:36 GMT
You can use the DSL now to complete XPath and so forth - so no need
for static imports

from("...").choice().when().xpath("/foo/bar")

when you have typed either of these expressions

  filter().
  when().

your IDE should smart complete all of the available languages and
expressions you can use

2008/7/2 Claus Ibsen <ci@silverbullet.dk>:
> 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:pratibha.ghogale@in2m.com]
> Sent: 2. juli 2008 07:39
> To: camel-user@activemq.apache.org
> 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.
>
>



-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message