Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1572

Console fails to display datasources correctly when a datasource has a property substitution

XMLWordPrintable

    • Hide

      Define one or more datasources using property substitution for the enabled attribute in the datasources subsystem in standalone*.xml or domain.xml:

                      <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="${h2.enabled}" ...>
                          ...
                      </datasource>
                      ...
      

      Start the server using an external properties file: e.g. bin/standalone.sh -P config.properties with name value pair (e.g. h2.enabled=true).

      In the web console, navigate to the "Configuration" tab then through "Subsystems" -> "Datasources & Drivers" and click on "Datasources".

      Show
      Define one or more datasources using property substitution for the enabled attribute in the datasources subsystem in standalone*.xml or domain.xml : <datasource jndi-name= "java:jboss/datasources/ExampleDS" pool-name= "ExampleDS" enabled= "${h2.enabled}" ...> ... </datasource> ... Start the server using an external properties file: e.g. bin/standalone.sh -P config.properties with name value pair (e.g. h2.enabled=true ). In the web console, navigate to the "Configuration" tab then through "Subsystems" -> "Datasources & Drivers" and click on "Datasources".

      When property substitution is used for the datasource enabled attribute, the web console fails to display the datasource (and may display a limited number of the others defined in the same profile - whether or not they have any substitution) and briefly raises one or more "Internal Error" "pop-up(s)".

              hpehl@redhat.com Harald Pehl
              rhn-support-sfikes Stephen Fikes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: