In the earlier chapters, such as Chapter 2, Working with Dependency Injection, and Chapter 4, Implementing Business Logic, we have seen Singleton and how to use it within a Java virtual machine.
WildFly is able to use the Singleton mechanism even among several nodes of a cluster. WildFly can instantiate Singleton on a node and ensure that it is used within all nodes of the same cluster. This mechanism is called HA Singleton.
Since HA Singleton is physically instantiated on a single node, operations are performed exclusively on that node. If the cluster node breaks or stops, WildFly plans to move Singleton to a nearby node, thereby ensuring high availability of the service.
Infinispan allows Singleton to be replicated on the different nodes of the Cluster and guarantees some transparency to the clients that use it. The client, which can be an EJB, a Servlet...