Apr 2nd, 2018
Download WildFly Java EE Full & Web Distribution from http://wildfly.org/downloads/
Create if not exist and then go to the directory WILDFLY_HOME/modules/system/layers/base/com/mysql/driver/main
. Download MySQL JDBC Connector, for example mysql-connector-java-8.0.21.jar
, and then copy it to the directory. Create module.xml
file
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.8" name="com.mysql.driver">
<resources>
<resource-root path="mysql-connector-java-8.0.21.jar" />
</resources>
<dependencies>
<module name="javax.api" />
<module name="javax.transaction.api" />
</dependencies>
</module>
There are three methods to add datasource to WildFly.
TODO:
TODO:
TODO:
TODO: