[
https://issues.apache.org/jira/browse/AMQ-7150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Lichtin updated AMQ-7150:
--------------------------------
Affects Version/s: 5.18.6
(was: 5.15.6)
> Supporty activemq.xml property substitution on non-string values
> ----------------------------------------------------------------
>
> Key: AMQ-7150
> URL: https://issues.apache.org/jira/browse/AMQ-7150
> Project: ActiveMQ Classic
> Issue Type: Improvement
> Components: Broker
> Affects Versions: 5.18.6
> Reporter: Martin Lichtin
> Priority: Major
>
> Property substitution works fine for string type values, e.g.
> {noformat}
> <broker ... useJmx="${useJmx:true}" >{noformat}
> will either use the value of property "useJmx" or default to "true".
> However, for say an integer type, this does not work. E.g.
> {noformat}
> <redeliveryPolicy queue=">" maximumRedeliveries="${maxRedeliveries:0}" />
> {noformat}
> It looks like the substitution is done after the XML validation occurs, so
> above is an invalid configuration.
> Perhaps one solution is to first parse without validation, then substitute
> the placeholders (it's done as a post-processing step), and only then
> validate the XML.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact