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

Creating XA datasource requires driver name and version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • 7.0.0.CR1
    • None
    • Domain Management
    • None

      It's weird, because the XA datasource itself just relies on the DataSource class. The driver and version info is only needed to identify the module/service:

      Request
      {
      "operation" => "add",
      "address" => [
      ("profile" => "default"),
      ("subsystem" => "datasources"),
      ("xa-data-source" => "H2XADS")
      ],
      "name" => "H2XADS",
      "jndi-name" => "H2XADS",
      "enabled" => true,
      "xa-data-source-class" => "org.h2.jdbcx.JdbcDataSource",
      "pool-name" => "H2XADS_Pool",
      "user-name" => "sa",
      "password" => "sa",
      "xa-data-source-properties" => [("URL" => "jdbc:h2:mem:test")],
      "child-type" => undefined
      }

      Response

      Internal Server Error
      {
      "outcome" => "failed",
      "result" => {"server-groups" => {"main-server-group" => {
      "server-two" => {
      "host" => "local",
      "response" =>

      { "outcome" => "failed", "failure-description" => "java.util.NoSuchElementException: No child 'driver' exists" }

      },
      "server-one" => {
      "host" => "local",
      "response" =>

      { "outcome" => "failed", "failure-description" => "java.util.NoSuchElementException: No child 'driver' exists" }

      }
      }}},
      "failure-description" => "Operation was not applied successfully to any servers"
      }

            rhn-support-hbraun Heiko Braun
            rhn-support-hbraun Heiko Braun
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: