Claus Ibsen created CAMEL-7572:
----------------------------------
Summary: 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
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)