Platform Framework
R24 AMR | Min(s) read

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,

  1. 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.
  2. 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.
  3. <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>
    
    Do not change the javax dependencies unless you know exactly what you are doing.
    You have to use the drivers provided with the database. The drivers present under %TAFJ_HOME%\DBDrivers are just helper.

    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
    These might not be the correct drivers that are dumped in the modules directory.

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:10:31 PM IST