1 Reply Latest reply on Oct 21, 2011 12:57 PM by rajan01

    Use property substitution in data source configuration in JBoss AS 6.1.0

    jingyi_wang

      We have a data source configuration file that uses ${propertyName:defaultValue} syntax, like this:

      <min-pool-size>${my.minPoolSize:1}</min-pool-size>

      <max-pool-size>${my.maxPoolSize:20}</max-pool-size>

      <idle-timeout-minutes>${my.idleTimeout:15}</idle-timeout-minutes>

      <security-domain>${my.domain:EncryptPassword}</security-domain>

       

      This has been working in JBoss 4.2.x. Now we are migrating to 6.1.0, and this feature seems not working. All the number fields are shown to have the value of 0,  and the string field shows the literal value of "${my.domain:EncryptPassword}".

       

      It's important that we keep these properties configurable. How can I achieve this now?