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

    Stateful Session Bean Remove

    Oleg Newbie

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

        • 1. Re: Stateful Session Bean Remove
          Peter Doornbosch Apprentice

          > 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