1 Reply Latest reply on Jan 25, 2011 7:03 AM by Mircea Markus

    CleanUp of cache manager and Cache

    Sudheer Krishna Novice

      HI,

       

      I am planning to use Cache in a distributed enviroment with JTa transaction manager configured. I just want to ensure that i am doing the right cleanup.

       

       

      I am calling cache.stop() followed by cachemanager.stop().  What will teh effect of this be on other Vm instances running in the cluster. Will the distibuted cache(mode=distribution with 3 replicas) be deleted in all nodes ?

       

      I could not find any description on teh API doc (org.infinispan.lifecycle)

        • 1. CleanUp of cache manager and Cache
          Mircea Markus Master

          I am calling cache.stop() followed by cachemanager.stop().  What will teh effect of this be on other Vm instances running in the cluster. Will the distibuted cache(mode=distribution with 3 replicas) be deleted in all nodes ?

          That does not "delete" the cache instance. It only takes this node out out of the clusters. The cache still runs on the remaining nodes, and as long as there are at least 3 caches running in the cluster then your data has 3 replicas.