Chapter 18. The Cluster App Quickstart
The EAP Cluster App quickstart demonstrates how to use a JBoss Data Grid cache in library mode.
There are three different applications which show:
- How to create and use a JBoss Data Grid clustered cache without having a JBoss EAP cluster.
- A configuration where the JBoss EAP cluster is independent of an Infinispan cluster.
- One JBoss EAP instance can use JBoss Data Grid caches which are members of a different JBoss Data Grid cluster.
- Programming cache configuration using the JBoss Data Grid API.
- File based configuration, seen in administration application App1Cache.
- Use CDI to inject the cache managers.
Each application contains an embedded JBoss Data Grid cache which is accessed by stateless EJB's in the same application. Different JBoss EAP servers, with the exception of AppTwo, are not clustered to demonstrate that an unclustered application can share the JBoss Data Grid cache. In addition, there are two cache managers, neither of which are members of the same JBoss Data Grid cluster. The AdminApp accesses and modified both of these caches. AppOne can only read the App1Cache, but it uses a clustered EJB invocation to AppTwo to read from App2Cache; while AppTwo is deployed as a clustered EJB application and only read App2Cache.
18.1. EAP Cluster App Prerequisites
The prerequisites for the EAP Cluster App are as follows:
- Java 8.0 (Java SDK 1.8) or better
- JBoss Enterprise Application Platform 7.0 or later
- Maven 3.0 or better
- Configure the Maven repository. For details, see Chapter 3, Install and Use the Maven Repositories.
- JBoss Data Grid modules installed in the JBoss EAP server.