You are on page 1of 2

5/21/2019 Install Oracle Driver Jboss Wildfly 14 – Jaehoo Weblog

Jaehoo Weblog

Blog personal de jaehoo

Install Oracle Driver Jboss Wildfly 14

mayo 20, 2019mayo 20, 2019

Create new module with this structure and files, into


“$WILDFLY_HOME\modules\system\layers\base“:

+---com
| \---oracle
| \---main
| module.xml
| ojdbc7-12.1.0.2.jar

module.xml, set a name of the module at same as the folder structure “com.oracle“, in path set the
name of jar.

https://jaehoo.wordpress.com/2019/05/20/install-oracle-driver-jboss-wildfly-14/ 1/2
5/21/2019 Install Oracle Driver Jboss Wildfly 14 – Jaehoo Weblog

<?xml version="1.0" encoding="UTF-8"?>


<module xmlns="urn:jboss:module:1.1" name="com.oracle">
<resources>
<resource-root path="ojdbc7-12.1.0.2.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>

Edit server configuration, in standalone.xml into the tag drivers add the new module:

<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
<driver name="ojdbc6.jar" module="com.oracle">
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasourc
</driver>
</drivers>

Restart the server.

Saludos

Publicado en: General, Java, Servers | Etiquetado: Java, Jboss, Server


This site uses Akismet to reduce spam. Learn how your comment data is processed.

CREA UN BLOG O UN SITIO WEB GRATUITOS CON WORDPRESS.COM.

https://jaehoo.wordpress.com/2019/05/20/install-oracle-driver-jboss-wildfly-14/ 2/2

You might also like