[
https://issues.apache.org/jira/browse/CAMEL-8382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-8382.
--------------------------------
Resolution: Fixed
> 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: Bug
> Components: camel-core
> Affects Versions: 2.14.1
> Reporter: Gareth Western
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.14.2, 2.15.0
>
>
> 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)