3 Replies Latest reply on May 4, 2013 1:16 PM by Nicklas Karlsson

    How to create a custom data source on jboss7?

    frank moss Newbie

      We are migrating from an existing server to jboss (7.1.1.Final) and we have to use the current datasource (developed in-house). This is needed to make the existing code work which relies on that datasource.

      The data source is declared as:

      <datasources>
      <datasource jndi-name="java:jboss/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
                          <connection-url>jdbc:oracle:thin:@10.0.1.25:1521:xe</connection-url>
                          <datasource-class>net.jda.db.DBPool</datasource-class>
                          <driver>ojdbc6.jar</driver>
                          <security>
                              <user-name>scott</user-name>
                              <password>tiger</password>
                          </security>
                      </datasource>
       <drivers>
                      <driver name="oracle" module="com.oracle.ojdbc6">
                          <xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
                      </driver>
                  </drivers>
              </datasources>

      But the datasource-class is completely ignored. How do I make use of it?