1 Reply Latest reply on Feb 7, 2003 7:45 AM by petertje

    Stateful Session Bean Remove

    olegg

      When the container removes the stateful session bean it does not call ejbRemove method.
      Why could it happen?

        • 1. Re: Stateful Session Bean Remove

          > When the container removes the stateful session bean
          > it does not call ejbRemove method.

          That is correct. This behaviour is defined in the EJB spec.

          > Why could it happen?
          ejbRemove is called when the client removes the stateful session bean. If you need to do some cleanup before the bean is removed (by the container) do it in the passivate call.

          Peter