JBoss Community

Use property substitution in data source configuration in JBoss AS 6.1.0

created by jingyi_wang in Datasource Configuration - View the full discussion

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?

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community