1 Reply Latest reply on Jan 29, 2016 12:34 AM by Jay SenSharma

    Wildfly 3rd party jdbc driver module location

    Mike Brooks Newbie

      If I am using CLI to install a 3rd party jdbc driver as a module in Wildfly 10, should I insert the driver jar into [Wildfly_Home]\modules\org\xxx\main




      or does the CLI "module add" script do it automatically

        • 1. Re: Wildfly 3rd party jdbc driver module location
          Jay SenSharma Master

          Custom modules can be placed in "$WILDFLY_HOME\modules" or inside the "$WILDFLY_HOME\modules\system\layers\base"  both should work fine.    However  as a best practice you can / should put your custom modules directly inside the $WILDFLY_HOME/modules    directory    so that you can easily differentiate between WIldFLy provided default modules Vs your own custom modules.

          The Jboss-cli utility also should be able to create the custom moduce using the following command:

          module add --name=org.oracle --slot=main --resources=/PATH/TO/ojdbc6.jar --dependencies=javax.api,javax.transaction.api

          Above CLI command will generate the custom module XML as :   $WILDFLY_HOME\modules\org\oracle\main\module.xml       as following:

          <?xml version="1.0" ?>
          <module xmlns="urn:jboss:module:1.1" name="org.oracle" slot="main">
                  <resource-root path="ojdbc6.jar"/>
                  <module name="javax.api"/>
                  <module name="javax.transaction.api"/>


          Jay SenSharma