Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7572

Using custom id in CBR will output id duplicated when dumping route as XML using JMX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.13.1
    • 2.12.5, 2.13.3, 2.14.0
    • camel-core, jmx
    • None
    • Unknown

    Description

      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

      <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>
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: