Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4050

data-source:enable is broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.0.0.Beta1
    • 8.0.0.Final, 8.1.0.Final, 9.0.0.Alpha1
    • JCA
    • None
    • Hide

      In domain mode

      1. /profile=full/subsystem=datasources/data-source=foo:add(jndi-name=java:jboss/datasources/foo,driver-name=h2,connection-url=jdbc:h2:mem:foo,enabled=false)
      2. /profile=full/subsystem=datasources/data-source=foo:enable(){allow-resource-service-restart=true}
      3. /profile=full/subsystem=datasources/data-source=foo:read-attribute(name=enabled) returns false
      4. reload --host=master --restart-servers=true
      5. /profile=full/subsystem=datasources/data-source=foo:read-attribute(name=enabled) still returns false
      Show
      In domain mode /profile=full/subsystem=datasources/data-source=foo:add(jndi-name=java:jboss/datasources/foo,driver-name=h2,connection-url=jdbc:h2:mem:foo,enabled=false) /profile=full/subsystem=datasources/data-source=foo:enable(){allow-resource-service-restart=true } /profile=full/subsystem=datasources/data-source=foo:read-attribute(name=enabled) returns false reload --host=master --restart-servers=true /profile=full/subsystem=datasources/data-source=foo:read-attribute(name=enabled) still returns false
    • Hide

      :write-attribute(name=enabled, value=true) works as expected.

      Show
      :write-attribute(name=enabled, value=true) works as expected.

      Enabling a disabled datasource using the operation :enable() is broken. It remains disabled.

              smaestri@redhat.com Stefano Maestri
              hpehl@redhat.com Harald Pehl
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: