2 Replies Latest reply on Jan 4, 2012 2:01 PM by stianst

    Property expansion doesn't work in datasource connection-url on 7.1.0.CR1

    stianst

      In AS 7.0.2.Final I could specify the connection-url of a datasource as:

       

      <connection-url>jdbc:derby:${jboss.server.data.dir}/mydb;create=true</connection-url>

       

      This would result in the Derby DB created under <JBOSS HOME>/standalone/data/mydb. However, in 7.1.0.CR1 this doesn't work anymore and the database is saved in <WORKING DIR>/${jboss.server.data.dir}/mydb.

       

      Is there another way to make sure my Derby db is saved in the correct folder? Is this caused by a bug, or is it intentionally not supported anymore?