In order to install new modules in WildFly, we need to create a directory for the new module following the pattern of the directories inside $ JBOSS_HOME/modules
. You must have a library (JAR) and module.xml
file that describes the module itself and its dependencies from other modules, if any.
To illustrate how to create a new module, we will create a module to be used by datasources that we will use in subsequent chapters. Let's start. First, get the MySQL JAR file, available at http://dev.MySQL.com/downloads/connector/j/.