WildFly
April 2, 2018

Prerequisites

  1. Debian
  2. Java

Install WildFly

Download WildFly Java EE Full & Web Distribution from http://wildfly.org/downloads/

Install MySQL JDBC Connector

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<?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>

Adding DataSource

There are three methods to add datasource to WildFly.

Admin Console

TODO:

standalone.xml

TODO:

CLI

TODO:

WildFly Micro Maven Plugin

TODO: