remove on passivated bean


EJB programming & troubleshooting: remove on passivated bean

  1. remove on passivated bean (2 messages)

    EJB spec 2.0 on page 79 says "If a client invokes a session object whose session bean instance has been passivated, the container will activate the instance. To activate the session bean instance, the container restores the instance’s state from secondary storage and issues ejbActivate on it." What happens when client calls remove on a passivated bean? Does the container activates the bean and then calls ejbRemove on it or it just removes the bean without activating it and calling ejbRemove?

    Threaded Messages (2)

  2. remove on passivated bean[ Go to top ]

    The Container activates the bean then it will call ejbRemove.
  3. Re: remove on passivated bean[ Go to top ]

    The bean has to come to "Method-Ready" state before ejbRemove() is called.A passive bean comes to "Method-Ready" state when container invokes "ejbActivate" and then ejbRemove() is called. Go thru the lifecycle diagram.