1 Reply Latest reply on Mar 4, 2013 9:00 AM by Galder Zamarreño

    Enable/disable passivation at runtime

    Raluca Pavel Newbie



      I am trying to use Infinispan to store some sensitive information and I want to guarantee that the data is not lost if some nodes crash.

      I have configured the cache so that each entry is replicated n times and I use also a jdbc cache store with passivation is enabled. Hoewever, as an additional safety net, I would like to disable passivation if the number of cluster members is lower than the configured number of owners, in order for each new cache entry to be stored in the cache store also. I cannot find a way to activate/deactivate passivation programatically at runtime (not when the cache is started). I also want to make sure also that this is not an abusive usage so any suggestion will be greatly appreciated.