ActiveMQ
  1. ActiveMQ
  2. AMQ-2735

Support of Property Placeholders for Numeric Configuration Parameters with XSD based configuration

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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

      1. activemq.xsd
        284 kB
        Erich Liebmann

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1265d 13h 35m 1 Claus Ibsen 02/Nov/13 20:17
        Claus Ibsen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Hide
        Claus Ibsen added a comment -

        The schema is auto generated using xbean-spring. We cannot hand craft the schema file.

        Show
        Claus Ibsen added a comment - The schema is auto generated using xbean-spring. We cannot hand craft the schema file.
        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
        Bruce Snyder made changes -
        Fix Version/s 5.4.1 [ 12332 ]
        Rob Davies made changes -
        Fix Version/s 5.4.1 [ 12332 ]
        Erich Liebmann made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        Erich Liebmann made changes -
        Field Original Value New Value
        Attachment activemq.xsd [ 19291 ]
        Hide
        Erich Liebmann added a comment -

        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.

        Show
        Erich Liebmann added a comment - 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.
        Erich Liebmann created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Erich Liebmann
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development