Why and when to perform this task
To use cache instances you must complete the following:Steps for this task
Cell scope will make the cache instance available to all servers within the cell. Node scope will make the cache instance available to all servers on the particular node. Server scope will make the cache instance available to only the selected server. You can mix scopes if necessary.
This is name you will pass to the InitialContext lookup() method from within your application. For example, services/cache/instance_one.
InitialContext ic = new InitialContext(); DistributedMap dm1 = (DistributedMap)ic.lookup("services/cache/instance_one");See the DistributedMap Javadoc for more information.