Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-60

Property substitution in subsystems: datasources and resource adapters are not handled correctly on windows OS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 6.2.0.GA
    • JCA
    • None

      When trying to use jboss environment variables (i.e., jboss.home.dir, jboss.server.base.dir) in either the datasources or resource-adapters subsystems, on a windows machine, the back slashes are removed. Example of datasource:

      /subsystem=datasources/data-source=h2:add(jndi-name=java:/accounts-ds, enabled=true, use-java-context=true, driver-name=h2, connection-url="jdbc:h2:mem:accounts;INIT=RUNSCRIPT FROM '${jboss.home.dir}/teiidfiles/customer-schema.sql'\;",user-name=sa, password=sa)

      the substitution for ${jboss.home.dir} ends up: c:jbosseapjboss-eap-6.2

      The security subsystem has references to ${jboss.server.config.dir} and they appear to work. And I tried to use that env. variable in the above datasource, and it too had its back slashes removed.

            jpederse@redhat.com Jesper Pedersen
            van.halbert Van Halbert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: