Book Image

Mastering JBoss Enterprise Application Platform 7

By : Francesco Marchioni, Luigi Fugaro
Book Image

Mastering JBoss Enterprise Application Platform 7

By: Francesco Marchioni, Luigi Fugaro

Overview of this book

The JBoss Enterprise Application Platform (EAP) has been one of the most popular tools for Java developers to create modular, cloud-ready, and modern applications. It has achieved a reputation for architectural excellence and technical savvy, making it a solid and efficient environment for delivering your applications. The book will first introduce application server configuration and the management instruments that can be used to control the application server. Next, the focus will shift to enterprise solutions such as clustering, load balancing, and data caching; this will be the core of the book. We will also discuss services provided by the application server, such as database connectivity and logging. We focus on real-world example configurations and how to avoid common mistakes. Finally, we will implement the knowledge gained so far in terms of Docker containers and cloud availability using RedHat's OpenShift.
Table of Contents (20 chapters)
Mastering JBoss Enterprise Application Platform 7
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface

Clustering in domain mode


Continuing from the previous sections, we will see how to configure a cluster using domain mode. The same concepts apply to the domain mode, which means that to get clustering capabilities, we need to choose between the ha or full-ha profile.

As you already know, in domain mode, all the available and configured profiles reside in a single file, domain.xml. Each profile is then referenced by one or more server-groups.

To make it simple and clear, we belong to the default configuration and we will use the ha profile.

Server-group configuration

Before we begin, as usual, we will create a custom folder to run our JBoss in domain mode and we will define the necessry server-group.

We will first launch the application server with the --admin-only flag, so we can configure it without any running instances. We will then set all the configurations and restart the whole EAP with the --admin-only=false flag, which is normal-running.

Do as follows:

cd $JBOSS_HOME
cp -a domain master...