title: How to get all the cache names in an Infinispan cache cluster
body: <p>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.</p>
  
  <p>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();</p>
  
  <p>I am using the same config file for infinispan and jgroups(using tcp).</p>
  
  <p>Please suggest a way by which I can get all the cache names in a cluster.</p>
  
  <p>Thanks,
  Ankur</p>