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


Win a copy of Spring in Action this week in the Spring forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What's different between remove(para) of EJBHome and remove( ) of EJBRemote??