Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3192

Property expansion stopped working in datasource connection-url

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Final
    • 7.1.0.CR1b
    • JCA
    • None

    Description

      On 7.0.2.Final it was possible to use property expansion in the datasource connection-url, which is very useful for example when using embedded Apache Derby to specify that it should store the db in AS7's data directory.

      The following worked fine on 7.0.2.Final, but stopped working in 7.1.0.CR1b (not tested on other 7.1.0.X versions):

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

      Without property expansion, and with property expansion not available for system-properties either (see AS7-2579) it is rather difficult to make sure the db for an embedded database is saved within the AS7 data directory.

      Attachments

        Activity

          People

            smaestri@redhat.com Stefano Maestri
            sthorger@redhat.com Stian Thorgersen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: