You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Erich Liebmann (JIRA)" <ji...@apache.org> on 2010/05/17 08:44:04 UTC

[jira] Updated: (AMQ-2735) Support of Property Placeholders for Numeric Configuration Parameters with XSD based configuration

     [ https://issues.apache.org/activemq/browse/AMQ-2735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erich Liebmann updated AMQ-2735:
--------------------------------

    Attachment: activemq.xsd

Please find the activemq.xsd schema (from version 5.3.0) with the custom types used instead of xs:boolean, xs:float, xs:long, and xs:integer (to support property placeholders for these types) attached as an example.

> Support of Property Placeholders for Numeric Configuration Parameters with XSD based configuration
> --------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-2735
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2735
>             Project: ActiveMQ
>          Issue Type: Improvement
>            Reporter: Erich Liebmann
>         Attachments: activemq.xsd
>
>
> When using the amq namespace to configure an embedded brokers in Spring [1] the ActiveMQ XSD disallows using property placeholders [2] for numeric parameters.
> By introducing the following custom types in the ActiveMQ XSD and using them instead of xs:boolean, xs:float, xs:long, and xs:integer one would be able to use property placeholders for these type of configuration parameters.
>   <xs:simpleType name="placeholderPropertyBooleanValue">
>     <xs:union memberTypes="xs:boolean tns:placeholderPropertyValue"/>
>   </xs:simpleType>
>   
>   <xs:simpleType name="placeholderPropertyFloatValue">
>     <xs:union memberTypes="xs:float tns:placeholderPropertyValue"/>
>   </xs:simpleType>
>   
>   <xs:simpleType name="placeholderPropertyLongValue">
>     <xs:union memberTypes="xs:long tns:placeholderPropertyValue"/>
>   </xs:simpleType>
>   
>   <xs:simpleType name="placeholderPropertyIntegerValue">
>     <xs:union memberTypes="xs:integer tns:placeholderPropertyValue"/>
>   </xs:simpleType>
>   <xs:simpleType name="placeholderPropertyValue">
>     <xs:restriction base="xs:string">
>       <xs:pattern value="[$#](\{.*\}|\(.*\)|\[.*\])"/>
>     </xs:restriction>
>   </xs:simpleType>
> [1] http://activemq.apache.org/spring-support.html#SpringSupport-UsingSpring2.0
> [2] http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-factory-placeholderconfigurer

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.