One of the requisites of a cluster is that data is synchronized across its members so that, in case of failure of a node, the application and its session can continue on other members of the cluster, also known as High Availability . Like JBoss AS 6, the new AS 7 uses Infinispan as the distributed caching solution behind its clustering functionality. The Infinispan API replaces the earlier JBoss Cache library and can be either used as standalone data-grid platform (using its native implementation), or it can be embedded into the application server.
As we are interested in the latter option, we will quickly have a look at its configuration, which is contained within the main standalone-ha.xml/domain.xml
configuration file.
The following is the backbone of the Infinispan configuration:
<subsystem xmlns="urn:jboss:domain:infinispan:1.1" default-cache-container="cluster"> <cache-container name="cluster" default-cache="default"> <alias>...