I am using Infinispan with jgroups in java. I want to get all the cache names in an infinispan cache cluster. I have tried using DefaultCacheManager.getCacheNames(); but it gives only caches which are accessed on that the jvm from which it is called from and not all the caches in that cluster.
Once i access a cache on that jvm, it becomes available and the it starts coming in the cachelist which i get from DefaultCacheManager.getCacheNames();
I am using the same config file for infinispan and jgroups(using tcp).
Please suggest a way by which I can get all the cache names in a cluster.
Thanks, Ankur