Book Image

WildFly Cookbook

Book Image

WildFly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Running domain mode


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.

Getting ready

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.

Server groups in domain.xml

Each server group is then referenced into the host.xml file by a list of servers or hosts.

Servers declared in host.xml

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.

How to do it…

Just open your command line and...