File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
 
subject: EJBObject.remove()
 
Similar Threads
Home Interface.. Abstract Factory or Factory Method pattern?
Home interface or Home Interface stub
what methods do you put in EJB remote interface?
Where are create() and ejbCreate() methods
am I right?