You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2014/07/03 08:24:25 UTC

[jira] [Commented] (CAMEL-7572) Using custom id in CBR will output id duplicated when dumping route as XML using JMX

    [ https://issues.apache.org/jira/browse/CAMEL-7572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14051113#comment-14051113 ] 

Claus Ibsen commented on CAMEL-7572:
------------------------------------

Notice that <otherwise> has id = myChoice also

> Using custom id in CBR will output id duplicated when dumping route as XML using JMX
> ------------------------------------------------------------------------------------
>
>                 Key: CAMEL-7572
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7572
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, jmx
>    Affects Versions: 2.13.1
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.12.5, 2.13.3, 2.14.0
>
>
> If setting a custom id on a CBR then the dump route as xml JMX operation will include the id duplicated in the otherwise tag
> {code}
> <routes xmlns="http://camel.apache.org/schema/spring">
>     <route id="route1">
>         <from uri="file:src/data?noop=true"/>
>         <to uri="activemq:personnel.records" customId="true" id="amq"/>
>     </route>
>     <route id="route2">
>         <from uri="activemq:personnel.records"/>
>         <choice customId="true" id="myChoice">
>             <when id="when1">
>                 <xpath>/person/city = 'London'</xpath>
>                 <to uri="file:target/messages/uk" id="to1"/>
>             </when>
>             <otherwise customId="true" id="myChoice">
>                 <to uri="file:target/messages/others" id="to2"/>
>             </otherwise>
>         </choice>
>     </route>
> </routes>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)