Deploying Database Driver Module
This section shows a module.xmlthat helps you to configure your driver module.
To configure your driver module using module.xml,
- Create a module corresponding to the database drivers you want to deploy, that is for an oracle 12c database, you should create the module com/oracle/ora12c/main under JBOSS_HOME/modules. This module will be referenced by the data source, for more information, see Setting Data Sources.This module should be defined as a dependency of the com.temenos.tafj module, but not as a global module to avoid classloading issue.
- Copy the following items to the module created in step 1:
- The drivers for the corresponding database.
- The module.xml file from %TAFJ_HOME%\appserver\jboss\jboss7\modules\com\oracle\ora12c\main.
<module xmlns="urn:jboss:module:1.0" name="com.oracle.ora12c"> <resources> <resource-root path="ojdbc8.jar"/> <resource-root path="xmlparserv2_sans_jaxp_services.jar"/> <resource-root path="xdb6.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>
Alternatively, you can modify the %TAFJ_HOME%\appserver\jboss\jboss7eap\jboss-cli\modules-driver.cli file for your OS and driver, and execute the jboss-cli command below, but you must understand that these might not be the correct drivers that are dumped in the modules directory.
D:\Temenos\Reference\3rdParty\as\jBoss\jboss-eap-7\bin> jBoss-cli.bat --connect --file=%TAFJ_HOME%\appserver\jboss\jboss7eap\jboss-cli\modules-driver.cli --properties= %TAFJ_HOME%\appserver\jboss\jboss7eap\jboss-cli\tafj.properties
In this topic