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

(7.0.z) JBJCA-1334 - Add DataSource to ManagementRepository only after deployed successfully

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.4.CR1, 7.0.4.GA
    • None
    • None
    • None
    • EAP 7.0.4

      When a data-source was failed to be added because of missing connection-properties:

      /subsystem=datasources/data-source=XXX:add(jndi-name=java:/XXX, datasource-class=XXX,driver-name=h2, connection-url="jdbc:h2:test")
      

      , it can be added by correcting the information, like:

      [standalone@localhost:9990 /] /subsystem=datasources/data-source=XXX:add(jndi-name=java:/XXX, driver-name=h2,connection-url="jdbc:h2:test")
      {"outcome" => "success"}
      

      But the test-connection-in-pool() operation failed with IllegalStateException of the new created data-source:

      [standalone@localhost:9990 /] /subsystem=datasources/data-source=XXX:test-connection-in-pool()
      {
          "outcome" => "failed",
          "failure-description" => "WFLYJCA0040: failed to invoke operation: WFLYJCA0047: Connection is not valid",
          "rolled-back" => true
      }
      
      NOTE FOR THE VERIFY

      Changing the Step 1 to:

      /subsystem=datasources/data-source=XXX:add(jndi-name=java:/XXX, datasource-class=XXX,driver-name=h2)
      

      for the verifying, because of with fixing of https://issues.jboss.org/browse/JBJCA-1331 (also fixed in ironjacamar-1.3.5.Final), the original step 1 will not cause problems any more.

              rhn-cservice-bbaranow Bartosz Baranowski
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: