2 Replies Latest reply on Oct 14, 2010 10:14 AM by jaikiran

    Stateful Session Bean Serialized Files not being deleted

    pcarrollnf

      I am using JBoss 5.1.0.  When stateful session beans are passivated, they are placed in the tmp directory.  However, this directory does not appear to clean itself up either on shutdown or startup.  The serialized files continue to increase and may be causing issues with performance and disk space.  Is there a configuration setting that needs to be modified so that this directory is cleaned up?  Thanks.

        • 1. Re: Stateful Session Bean Serialized Files not being deleted
          pcarrollnf

          I figured out what the issue was here.  In jboss-5.1.0\server\default\deploy\ejb3-interceptors-aop.xml, removalTimeoutSeconds was set to 0.  That meant the serialized files are never to be removed.  I set it to an appropriate value.  I was stil using the settings in jboss-5.1.0\server\default\conf\standardjboss.xml to configure the life cycle of my stateful session beans.  I assume the standardjboss.xml settings are used for EJB 2.x beans while the ejb3-interceptors-aop.xml settings are used for EJB3 beans.

          • 2. Re: Stateful Session Bean Serialized Files not being deleted
            jaikiran

            Paul Carroll wrote:

             

            I assume the standardjboss.xml settings are used for EJB 2.x beans while the ejb3-interceptors-aop.xml settings are used for EJB3 beans.

            That's correct.