Book Image

JBoss AS 7 Configuration, Deployment and Administration

By : Francesco Marchioni
Book Image

JBoss AS 7 Configuration, Deployment and Administration

By: Francesco Marchioni

Overview of this book

<p>As the Java EE standard has evolved and matured, the API has become increasingly rich and complex. The next generation of application servers needs to be modular and configurable to run only specific services or containers. JBoss AS 7 promises to meet those requirements but the configuration of a complex application server is composed of a mix of administrative and management tasks which often overlap, generating confusion.<br /><br />JBoss AS 7 Configuration, Deployment and Administration will give you an expert's understanding of every component that makes up the JBoss application server, and will show you how to use them, helping you to dramatically cut down the learning curve for this exciting product.<br /><br />This book will guide you through configuration, management, deployment and advanced administration in a logical order to avoid the common pitfalls of setting up a new AS. The book dives into the new application server structure and shows you how to install it. You will learn how to configure the core AS services, including thread pools, the messaging system, and the transaction service. Finally, you will learn how to deploy and manage your applications and then tune the performance of your AS to achieve an efficient, indispensible application server.</p>
Table of Contents (19 chapters)
JBoss AS 7 Configuration, Deployment, and Administration
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Clustering the messaging subsystem


We will conclude the clustering chapter discussing about the messaging subsystem which uses HornetQ as JMS provider.

HornetQ clusters allow groups of HornetQ servers to be grouped together in order to share the message processing load. Each active node in the cluster is an active HornetQ server that manages its own messages and handles its own connections.

In order to enable clustering, you need a few simple enhancements to your server configuration file. At first, the JMS server must be configured to be clustered, so you will need to set the clustered element at the top of the messaging domain setting it to true (this element defaults to false).

<subsystem xmlns="urn:jboss:domain:messaging:1.1">
  <hornetq-server>
     <clustered>true</clustered>
   . . . . . .  
  </hornetq-server>  
</subsystem> 

Next, you need to configure the cluster connections. As a matter of fact, the cluster is formed by each node declaring cluster...