In this recipe, we will learn how to run WildFly in the domain mode. There are a few concepts that you need to be aware of—domain controller, host controller and server group. However, those concepts are all explained in the Appendix section of this book.
WildFly comes with pre-configured domain.xml
and host.xml
files. There are two defined server groups: one named main-server-group
referencing the full
profile; the other one named other-server-group
referencing the full-ha
profile.
Each server group is then referenced into the host.xml
file by a list of servers or hosts.
As you can see from the preceding XML code snippet, each server definition references the server-group membership using the attribute group
. Also, the auto-start
attribute defines whether the server will start automatically, or whether it needs a manual startup from the Admin Console or via CLI.