Java Reference
In-Depth Information
which uses an offset of 200 . So for example, the second node would respond to the
HTTP channel on port 8280 instead of port 8080 .
Note
Don't be surprised if you don't see any message about clustering on your server
console. Clustering modules are activated on demand, so at first you need to de-
ploy an application that is cluster-aware. In a few minutes, we will show you how.
Starting a cluster of domain nodes
In order to configure a cluster running on a domain of server nodes, you need to con-
figure the main domain.xml file for your domain controller, and then, for every AS 7
host that is a part of the cluster, you need to provide a host.xml configuration file,
which describes the configuration of a single-server distribution.
Note
The domain configuration has been enhanced in the latest AS 7 builds and in
the current EAP 6 platform. It is available for download at http://www.jboss.org/
jbossas/downloads ; therefore, you need to upgrade your current AS 7.1.1 re-
lease in order to be able to complete the following steps.
The domain controller configuration
The domain.xml file is located at JBOSS_HOME/domain/configuration/ . It in-
cludes the main domain configuration, which is shared by all server instances. In the
domain.xml file, we will define the server group configurations, specifying a profile
that is compatible with clustering. Out of the box, a JBoss AS 7 domain ships with
four different profiles:
default : This profile has the support of Java EE Web Profile and some
extensions, such as RESTful web services or support for EJB 3 remote
invocations
Search WWH ::




Custom Search