aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJBObject.remove()" Watch "EJBObject.remove()" New topic
Author

EJBObject.remove()

Joseph Jegan
Greenhorn

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: http://aspose.com/file-tools
 
subject: EJBObject.remove()