camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-3531) scala - xpath not working together with choice/when
Date Thu, 07 Jul 2011 19:36:17 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-3531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp updated CAMEL-3531:
-------------------------------

    Fix Version/s: 2.7.3

> scala - xpath not working together with choice/when
> ---------------------------------------------------
>
>                 Key: CAMEL-3531
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3531
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-scala
>    Affects Versions: 2.5.0
>         Environment: Ubuntu Linux 10.04, java 1.6
>            Reporter: Craig McDaniel
>            Assignee: Claus Ibsen
>             Fix For: 2.7.3, 2.8.0
>
>         Attachments: XPathContentBasedRouterTest.scala
>
>
> When using the Scala DSL, xpath expressions inside when() do not work as expected. As
an example:
> {code:none}
>      "direct:a" ==> {
>      choice {
>         when (xpath("//hello")) to ("mock:english")
>         when (xpath("//hallo")) {
>           to ("mock:dutch")
>           to ("mock:german")
>         } 
>         otherwise to ("mock:french")
>       }
>     }
> // Send messages
> "direct:a" ! ("<hello/>", "<hallo/>", "<hellos/>")
> {code}
> Here we should receive 1 message in each of the mocks. For whatever reason, all 3 messages
go to mock:english. Similar routes work as expected with the Java DSL. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message