A JavaMap instance is obtained from an ObjectMap object. The JavaMap interface has the same method signatures as ObjectMap, but with different exception handling. JavaMap extends the java.util.Map interface, so all exceptions are instances of the java.lang.RuntimeException class. Because JavaMap extends the java.util.Map interface, it is easy to quickly use WebSphere® eXtreme Scale with an existing application that uses a java.util.Map interface for object caching.
ObjectGrid objectGrid = ...; BackingMap backingMap = objectGrid.defineMap("mapA"); Session sess = objectGrid.getSession(); ObjectMap objectMap = sess.getMap("mapA"); java.util.Map map = objectMap.getJavaMap(); JavaMap javaMap = (JavaMap) javaMap;A JavaMap is backed by the ObjectMap from which it was obtained. Calling the getJavaMap method multiple times using a particular ObjectMap always returns the same JavaMap instance.