Martin Lichtin created AMQ-7150:
-----------------------------------

             Summary: Supporty activemq.xml property substitution on non-string 
values
                 Key: AMQ-7150
                 URL: https://issues.apache.org/jira/browse/AMQ-7150
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 5.15.6
            Reporter: Martin Lichtin


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
(v7.6.3#76005)

Reply via email to