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 overview and misconceptions


Clustering is the ability to mitigate and take care of server failures, such as JVM crashes, physical server crashes, network unavailability, and everything that can take down your system.

Clustering means that when your application is running on a server, it can continue its task on another server exactly at the same point it was at, without any manual failover. This means that the application's state is replicated across cluster members.

The term clustering is meant at the application level; it's not a system cluster, thus at OS level. Hence, your applications, at least your web application, needs to be cluster aware, which means that it needs to be declared as distributable in its deployment descriptor, as follows:

<web-app> 
   <distributable/> 
</web-app> 

Pretty easy, right?

Note

One more thing that you should keep in mind is that clustering a stateless application does not make sense, so your RESTful Web services do...