Hi, I am a newcomer in JBoss world and have very little knowledge about JBoss Cache. I am having an Java application that uses JBoss cache to store some information. The application creates different nodes (having different names) inside the cache and keeps different information in each node. It is implemented like this way, MBeanServer server = MBeanServerLocator.locateJBoss(); TreeCacheMBean myCache = (TreeCacheMBean) MBeanProxyExt.create(TreeCacheMBean.class, <CacheServiceName>, server); String node1 = <CacheName> + "1"; String node2 = <CacheName> + "2"; String node3 = <CacheName> + "3"; myCache.put(node1, <Key1>, <Value1>); myCache.put(node2, <Key2>, <Value2>); myCache.put(node3, <Key3>, <Value3>); Now my question is, do JBoss Cache provides anything like iterator by which I can iterate these nodes inside the cache. Please note that, there may run another thread that will remove one or more of these nodes from the cache. So at the time of iteration my application does not know how many nodes present at that time. If there is something like iterator JBoss cache provides, how can I use that and what jar files do I need for that. If such an iterator is not there in JBoss cache, what is the normal practise to implement an iterator like functionality ? I need this very urgent. Please help me out regarding this ASAP. Thanks, Sumanta |