Hmm, I assume this is a copy of http://stackoverflow.com/questions/8370663/how-to-get-all-the-cache-names-in-an-infinispan-cache-clusture ?
Here's my response:
Hmmm, normally you'll have all caches defined cluster wide, so getting the cache names in a node is good enough to know the caches that are available cluster wide.
This doesn't seem to be your case though, so the easiest thing I can think of is to do a Map/Reduce functionality in Infinispan to retrieve the cache names from individual nodes in the cluster and then collate them.
For more info, see https://docs.jboss.org/author/display/ISPN/Infinispan+Distributed+Execution+Framework and https://www.jboss.org/dms/judcon/presentations/Boston2011/JUDConBoston2011_day2track2session2.pdf
Sorry for spamming at multiple forums, that was an act of desperation
yes I am not predefining the caches in the config file. Caches are dynamically created by various modules as and when needed.
I need to write a utility to check all the present caches and if possible monitor them or log all of them perodically for testing.
Let me try the Map-Reduce functionality and get back to you.