2 Replies Latest reply on Jan 21, 2003 10:16 AM by petertje

    EJB cleanup

    dlupo

      How does a stateful session bean properly clean up itself if the client who has a handle to the bean exits ungracefully without calling ejbRemove? In my testing, ejbRemove does not get called when the client goes away. For example, using RMI, if the remote object detects that the client has gone away, unreferenced gets called and the remote object can do some clean up.

        • 1. Re: EJB cleanup
          sblanc

          Hello !
          I'm interested in the same matter. I'd like to develop a test tool that list all the session beans that are still in the app srv but unreferenced, and that can clean them up.
          thanx.
          seb.

          • 2. Re: EJB cleanup

            Stateful session beans are removed by JBoss after a certain "time-to-live". This can be configuared in the container configuration in the jboss.xml (or standardjboss.xml) file. The default is 30 minutes i think.