DataSource

 

드라이버 다운로드

주요 DB 제품 별 드라이버 다운로드 페이지는 다음과 같다.

  • Oracle Database

http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html

  • MS SQLServer

https://www.microsoft.com/ko-kr/download/details.aspx?id=11774

  • MySQL

http://dev.mysql.com/downloads/connector/j/

  • MariaDB

https://downloads.mariadb.org/connector-java/

 

드라이버 설치

드라이버 설치는 다음 두 방법이 있다.

  • 배포 설치

standalone 모드인 경우 JDBC 4 호환 드라이버 파일(jar)을 ${WF_HOME}/standalone/deployment 디렉토리에 넣는다.

  • 모듈 설치

module.xml을 포함하는 모듈 디렉토리를 생성한다. 예를 들어 MySQL 드라이버의 경우 아래와 같은 구조의 디렉토리를 생성한다.

${WF_HOME}/modules/com/mysql/main

디렉토리 내 module.xml 파일은 다음과 같다. 위에서 생성한 모듈 디렉토리 명과 module.xml 내 module name은 동일해야 한다.

<?xml version="1.0" encoding="UTF-8"?>
    <!--
      ~ JBoss, Home of Professional Open Source.
      ~ Copyright 2010, Red Hat, Inc., and individual contributors as indicated by the @author tags. See the copyright.txt file in the
      ~ distribution for a full listing of individual contributors.
      ~
      ~ This is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as
      ~ published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
      ~
      ~ This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
      ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
      ~
      ~ You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free
      ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF site: http://www.fsf.org.
      -->
 
 
    <module xmlns="urn:jboss:module:1.0" name="com.mysql">
        <resources>
            <resource-root path="mysql-connector-java-5.1.15.jar"/>
        </resources>
        <dependencies>
            <module name="javax.api"/>
        </dependencies>
    </module>