0 Replies Latest reply on Jan 14, 2011 5:27 AM by sangsvaib263

    POJO Cache evicted node is not being invalidated properly




      I have given following configuration for pojo cache. When i increase "maxNodes" count only then cluster node is invalidated properly and fetches modified data.


      Is this a known issue that evicted node does not get invalidated properly or there is some propblem in configuration???



      JBOSS Configuration for cache-


      <property name="cacheLoaderConfig">

                  <bean class="org.jboss.cache.config.CacheLoaderConfig">

                         <!-- Do not change these -->

                         <property name="passivation">true</property>

                         <property name="shared">false</property>


                         <property name="individualCacheLoaderConfigs">


                              <bean class="org.jboss.cache.loader.FileCacheLoaderConfig">

                                 <!-- Where passivated sessions are stored -->

                                 <property name="location">${jboss.server.log.dir}${/}../../system/data/cache</property>

                                 <!-- Do not change these -->

                                 <property name="async">false</property>

                                 <property name="fetchPersistentState">true</property>

                                 <property name="purgeOnStartup">true</property>

                                 <property name="ignoreModifications">false</property>

                                 <property name="checkCharacterPortability">false</property>






               <property name="evictionConfig">

                   <bean class="org.jboss.cache.config.EvictionConfig">

                     <property name="wakeupInterval">5000</property>

                     <!--  Overall default -->

                     <property name="defaultEvictionRegionConfig">

                        <bean class="org.jboss.cache.config.EvictionRegionConfig">

                           <property name="regionName">/</property>

                           <property name="evictionAlgorithmConfig">

                              <bean class="org.jboss.cache.eviction.LRUAlgorithmConfig">

                                 <!-- Evict LRU node once we have more than this number of nodes -->

                                 <property name="maxNodes">10</property>

                                 <!-- And, evict any node that hasn't been accessed in this many seconds -->

                                 <property name="timeToLiveSeconds">1000</property>

                                 <!-- Don't evict a node that's been accessed within this many seconds.

                                      Set this to a value greater than your max expected transaction length. -->

                                 <property name="minTimeToLiveSeconds">120</property>








      Please suggest if any modification is required...

      Complete JBOSS config file is attached herewith.