Singleton in clustered /Distributed Env

Originally posted on IT Notes:
In a multiple JVM’s environment, each of them will have their own copy of the singleton object which can lead to multiple issues specially in a clustered environment where the access to the resource needs to be restricted and synchronized. To achieve clustering across multiple JVM’s, one can use multiple…