XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.ER4
    • None
    • Documentation
    • None

      MariaDB is supported database in EAP7 and there is no Example MariaDB datasource in 8.11. Example Datasource Configurations

      Please add Example MariaDB datasource and xa datasource

      Datasource

      <datasources>
        <datasource jndi-name="java:jboss/MariaDBDS" pool-name="MariaDBDS">
          <connection-url>jdbc:mariadb://localhost:3306/jbossdb</connection-url>
          <driver>mariadb</driver>
          <security>
            <user-name>admin</user-name>
            <password>admin</password>
          </security>
          <validation>
            <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
            <validate-on-match>true</validate-on-match>
            <background-validation>false</background-validation>
            <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
          </validation>
        </datasource>
        <drivers>
          <driver name="mariadb" module="org.mariadb">
            <driver-class>org.mariadb.jdbc.Driver</driver-class>
            <xa-datasource-class>org.mariadb.jdbc.MySQLDataSource</xa-datasource-class>
          </driver>
        </drivers>
      </datasources>
      

      XA Datasource

      <datasources>
        <xa-datasource jndi-name="java:jboss/MariaDBXADS" pool-name="MariaDBXADS">
          <xa-datasource-property name="ServerName">
            localhost
          </xa-datasource-property>
          <xa-datasource-property name="DatabaseName">
            mariadbdb
          </xa-datasource-property>
          <driver>mariadb</driver>
          <security>
            <user-name>admin</user-name>
            <password>admin</password>
          </security>
          <validation>
            <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
            <validate-on-match>true</validate-on-match>
            <background-validation>false</background-validation>
            <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
          </validation>
        </xa-datasource>
        <drivers>
          <driver name="mariadb" module="org.mariadb">
            <driver-class>org.mariadb.jdbc.Driver</driver-class>
            <xa-datasource-class>org.mariadb.jdbc.MySQLDataSource</xa-datasource-class>
          </driver>
        </drivers>
      </datasources>
      

      MariaDB is fork of MySQL, therefore there are MySQL references.

      Configuration Guide Revision: n_2082853_configuration-guide_version_7.0.beta_edition_1.0_release_0-revision_7538123

              rhn-support-ahoffer Andrea Hoffer
              msimka@redhat.com Martin Simka
              Martin Simka Martin Simka
              Martin Simka Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: