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

dumpRoutesAsXml should resolve "from" endpoint property values as with "to" endpoint URI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.14.1
    • 2.14.2, 2.15.0
    • camel-core
    • None
    • Unknown

    Description

      We have defined our routes with property keys for all endpoints ("from" and "to"). When using the dumpRoutesAsXml operation we see that the "from uri" value is the property key, however the "to uri" has been resolved to the actual property value.

      For example, given a RouteBuilder like the following:

              from("{{route1.uri}}")
                  .routeId("myRoute")
                  .to("{{route2.uri}}")
      

      dumpRoutesAsXml outputs the following:

          <route customId="true" id="myRoute">
              <from uri="{{route1.uri}}"/>
              <to uri="jms:myapp.route2" id="to2"/>
          </route>
      

      where "myapp.route2" is the resolved value of "route2.uri".

      Perhaps there is a good reason for this behaviour, but it appears to be inconsistent.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            westerg Gareth Western
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: