WildFly

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-5.1.46.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-5.1.46.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: