Why not? If you have handle you have have identifier to the bean you want to delete.
Hope it helps! Gemini
posted 11 years ago
Two possible scenarios that I could think of.
#1: the client invoked the remove(Handle h) method of an entity bean #2: an EJB invoked the remove(Handle h) method of an entity bean
For #1: The client would have a reference to the component interface. And from the component interface, it could invoke the getHandle method to obtain the handle of the entity bean. Then it could call the remove(Handle h) method on the home interface to remove the entity bean.
For #2: Its rather similar to #1 just that our client becomes another EJB. This EJB could obtain a EJBObject through the same way as a client would. And the same procedure in getting the handle & then removing the bean.
So all in all, you need to know your EJBObject & EJBHome interfaces well enough. We can safely ignore local interfaces for obvious reasons.