1 | The container invokes ejbRemove() method on the instance when it wants to remove the instance or a client invokes a remove method on the EJB Object or bean's Home interface. A bean implementation is expected to remove its entity presence from the data store (removing a row from table). |
2 | The container might want to passivate the instance to utilize the system resources in that case the container invokes ejbPassivate() method on the instance and disassociates the EJB Object from the instance. |