1 Reply Latest reply on Nov 18, 2003 4:54 AM by jonlee

    when and why is jboss removing passivated state file

    bo_hari

      i've got a problem with stateful session beans:

      about 30 min after the passivation of a bean, where the session state ist saved to a file, the StatefulSessionFilePersistenceManager deletes that file!
      of course, the next client request leads to a FileNotFoundException when the StatefulSessionFilePersistenceManager tries to read the session state from the deleted file.

      is there a possibility to prevent this behaviour?

      regards
      marc

        • 1. Re: when and why is jboss removing passivated state file
          jonlee

          Either change the global container configuration for stateless session beans in conf/standardjboss.xml or define your on container configuration in the local jboss.xml for your EJB.

          The two parameters of importance to you are remover-period and max-bean-life.

          The first indicates the period of the timer task that will scan the cache and
          the passivation storage (currently the filesystem) of stateful beans in
          search of beans that have age > max-bean-life. If it finds them, it removes
          them, from the cache if they're there, from the storage if they have been
          passivated.

          <cache-policy-conf>
           <min-capacity>50</min-capacity>
           <max-capacity>1000000</max-capacity>
           <remover-period>1800</remover-period>
           <max-bean-life>1800</max-bean-life>
           <overager-period>300</overager-period>
           <max-bean-age>600</max-bean-age>
           <resizer-period>400</resizer-period>
           <max-cache-miss-period>60</max-cache-miss-period>
           <min-cache-miss-period>1</min-cache-miss-period>
           <cache-load-factor>0.75</cache-load-factor>
           </cache-policy-conf>