I am trying to setup a cache cluster using infinispan, in replication mode. And, i would like to access the cache on any of these 2 laptops from a 3rd computer. (All 3 computers are on same network).
I have a stand alone java program on my 3rd computer
RemoteCacheManager rm = new RemoteCacheManager("localhost:11222");
rm.start();
RemoteCache<Object, Object> cache = rm.getCache("namedCache2");
Object val = cache.get("key");
I have configured namedCache2 on Laptop-1, prior to the execution of this method.
But, when i do rm.getCache("namedCache2"), i am getting this exception saying, namedCache2 is not configured.
Can someone please let me know what went wrong?