caching - Infinispan remote cache access -
i newbie infinispan , learning experimenting. need after failed trying access remote cache of different name. here scenario of infinispan client-server mode not embedded.
1) started node1 in infinispan cluster , set default remote cache name node1_cache. --hotrod server started
2) started node2 in infinispan cluster , set default remote cache name node2_cache. --hotrod server started
now in hotrod client can see remotecachemanager can initialize , cluster being setup , nodes getting added each other in console.
but problem 1 single client
1)when trying remotecache using name node1_cache, getting instance.
2) when try access node2_cache, giving me null remotecache instance.
now correct in accessing such way or missing in ?
is not single client can access caches of node configured across cluster ?
please guide me. thank you.
after amount of digging concepts of distributed cache, figured out following concept.
1) using 2 cluster-configuration files 2 infinispan nodes, 1 having dist cache name node1_cache , other node2_cache.
2) what figured out if have multiple caches different names, caches must defined in configuration files of infinispan hot-rod servers in same cluster. means in case both config files must have node1_cache , node2_cache name defined. can access , use both caches when
remotecachemanager.getcache("cachename");.
Comments
Post a Comment