This content has been marked as final.
Show 1 reply
-
1. Re: Wildfly 3rd party jdbc driver module location
jaysensharma Jan 29, 2016 12:34 AM (in response to mykelbrooks)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"> <resources> <resource-root path="ojdbc6.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>
Regards
Jay SenSharma