You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Martin Lichtin (Jira)" <ji...@apache.org> on 2024/10/22 07:48:00 UTC
[jira] [Updated] (AMQ-7150) Supporty activemq.xml property substitution on non-string values
[ 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: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact