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

Creating separate clusters in domain mode


In the previous recipe, we learned how to create a cluster. What if we need to manage more applications, each one having its own cluster? This is exactly what you will learn in this recipe. We will learn to manage more applications using the ha profile.

Getting ready

For this recipe, we will need the cluster-aware application named example, that you can find in my GitHub repository. If you skipped the Managing applications using the deployments folder recipe in Chapter 2, Running WildFly in Standalone Mode, please refer to it to download all the source code and projects that you will need.

To build the application, execute the following commands:

$ cd ~/WFC/github/wildfly-cookbook
$ cd example
$ mvn -e clean package

How to do it…

From the WildFly installation directory $WILDFLY_HOME, let's create three folders, one for the domain-controller (always run the domain-controller per se, without any other hosts), and two folders representing two different hosts...