1 Reply Latest reply on Sep 9, 2008 4:12 PM by Mircea Markus

    How to apply RemoveOnEvictActionPolicy only when maxAge sati

    u c Newbie

      I am using JBC3.0 Beta1, using JDBCCacheLoader passivation false

      My eviction policy looks like this

       <eviction wakeUpInterval="60000">
       <region name="/mydata/test" algorithmClass="org.jboss.cache.eviction.LRUAlgorithm" >
       <attribute name="maxNodes">1</attribute>
       <attribute name="minTimeToLive">1000</attribute>
       <region name="/mydata/test" algorithmClass="org.jboss.cache.eviction.LRUAlgorithm" actionPolicyClass="org.jboss.cache.eviction.RemoveOnEvictActionPolicy" eventQueueSize="200000">
       <attribute name="maxAge">6000000</attribute>
       <attribute name="timeToLive">6000000</attribute>

      My objective is to evict nodes from memory to the Database quickly but only remove the node when the maxAge satisfies. The above config does not seem to work, is there any suggestion.