8 Replies Latest reply on Jan 2, 2007 2:50 AM by ben.wang

    FileCacheLoader partial preload

    emailms box Newbie

      I?m using JBossCache-1.4.1.BETA and caching an object that contains some primitive fields, strings and a Map

      I use the following FileCacheLoader configuration

       <passivation>false</passivation>
       <preload>/</preload>
       <shared>false</shared>
      
       <cacheloader>
       <class>org.jboss.cache.loader.FileCacheLoader</class>
       <properties>location=/confCacheFile</properties>
       <async>false</async>
       <fetchPersistentState>true</fetchPersistentState>
       <ignoreModifications>false</ignoreModifications>
       <purgeOnStartup>false</purgeOnStartup>
       </cacheloader>
      
      


      I kill the JBoss and bring it back up again.
      I can re-access the object it?s fields .
      The Map however has a strange behavior: it is not null

      myObj.size() = 0
      myObj.values() is empty
      myObj.keySet () is empty
      
      But
      
      myObj.get(aKey) returns the entry
      
      


      How can I get myObj.values() to work ?