wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes What's different between remove(para) of EJBHome and remove( ) of EJBRemote?? 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 "What Watch "What New topic
Author

What's different between remove(para) of EJBHome and remove( ) of EJBRemote??

Javan Li
Ranch Hand

Joined: Jul 24, 2002
Posts: 84
When will we use remove() of them??? thanks very much!
[ April 03, 2003: Message edited by: Javan Li ]
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
EJBHome.remove() takes a handle or primary key and removes the appropriate bean instance.
EJBObject.remove() removes the current bean instance.
EJBHome.remove() saves you from having to find the appropriate bean instance just to call EJBObject.remove(). On other words, it is a shortcut.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What's different between remove(para) of EJBHome and remove( ) of EJBRemote??