Book Image

WildFly: New Features

By : Filippe C Spolti
Book Image

WildFly: New Features

By: Filippe C Spolti

Overview of this book

Table of Contents (13 chapters)
WildFly: New Features
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Global modules


WildFly can configure any module as a global module, just like AS7. This means it can be accessed by any application or other entity within the container at any time, but it is possible that the global module is in standby until it is used. Global modules are present in the standalone.xml or in the domain.xml files. The configuration responsible for these kinds of modules is within the subsystem, : jboss: domain: ee: 2.0. The creation of a global module is made in two stages: the creation of a module and the configuration of the global module.

In this topic, we will see what is required to add a global module and how to configure it.

To perform this configuration is very simple. After the module is configured correctly by following the standards, just enter the configuration inside the subsystem urn: jboss: domain: ee: 2.0 as follows:

<subsystem xmlns="urn:jboss:domain:ee:2.0">
  <global-modules>
    <module name="module.name"/>
  </global-modules>
.....