camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gareth Western (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-8382) dumpRoutesAsXml should resolve "from" endpoint property values as with "to" endpoint URI
Date Fri, 20 Feb 2015 10:08:11 GMT
Gareth Western created CAMEL-8382:
-------------------------------------

             Summary: dumpRoutesAsXml should resolve "from" endpoint property values as with
"to" endpoint URI
                 Key: CAMEL-8382
                 URL: https://issues.apache.org/jira/browse/CAMEL-8382
             Project: Camel
          Issue Type: Wish
          Components: camel-core
    Affects Versions: 2.14.1
            Reporter: Gareth Western
            Priority: Trivial


We have defined our routes with property keys for all endpoints ("from" and "to"). When using
the [dumpRoutesAsXml|http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/api/management/mbean/ManagedCamelContextMBean.html#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:
{code}
        from("{{route1.uri}}")
            .routeId("myRoute")
            .to("{{route2.uri}}")
{code}
dumpRoutesAsXml outputs the following:
{code}
    <route customId="true" id="myRoute">
        <from uri="{{route1.uri}}"/>
        <to uri="jms:myapp.route2" id="to2"/>
    </route>
{code}
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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message