Passa ai contenuti principali


Visualizzazione dei post con l'etichetta jboss

Install Mysql JDBC Driver on WildFly 8.2

The tutorial explains how to install a jdbc driver on RedHat WildFly application server a module, in the sample will be used the mysql driver but the proposed steps can be applied to any other driver libraryUsed technologies in the tutorial:Wild Fly 8.2.0.FinalMysql Connector 5.1.33 1. Create the jboss moduleEnter in the file path ${EAP_HOME}/modules/system/layers/base and create the directories com/mysql/driver/main.Into the folder main copy the driver library jar (link) and create a file module.xml as showed in the sample below<module xmlns="urn:jboss:module:1.3" name="com.mysql.driver"> <resources> <resource-root path="mysql-connector-java-5.1.33.jar" /> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>For an explanation about the meaning of the fields take a look at Jboss Module Documentation Page2. R…