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 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 Murach's Java Servlets and JSP this week in the Servlets 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??
 
Similar Threads
String array Declaration and initialization
how to use 'where' clause
* Welcome Mark Masse
JPanel, Remove Objects
Passing a value from a JSP page to an Action to get some data after processing