File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes EJBObject.remove() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJBObject.remove()" Watch "EJBObject.remove()" New topic


Joseph Jegan

Joined: Sep 06, 2000
Posts: 10
Home interface is responsible for the creating, removing and finding the EJB instances. Whereas Component interface (remote and local) provide access to bean's business methods. Can someone tell me, why the remove() method is present in EJBObject and EJBLocalObject interfaces which should ideally present only in Home interface?
Vladas Razas
Ranch Hand

Joined: Dec 02, 2003
Posts: 385
Because if you found the bean you want to remove, you can remove it right away! If you use the form of home method that uses handles, don't forget that obtaining handle might be processor intense (handle might be complex serializable object etc.) The second form of home method will do database search again, so it's also not very fast.
I agree. Here's the link:
subject: EJBObject.remove()
It's not a secret anymore!