This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Page 291 - ejbRemove method question

 
Ken Boyd
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mock Exam Question from HFB page 291.
2. Which capabilities are found in an entity bean's remote component interface?
A. creating new entity objects
B. finding existing entity objects
C. removing existing entity objects
D. executing a home business method
E. retrieving the EJBMetaData interface

Answer is C.
How come component interface can be used to remove entity beans?
EJBObject has remove() method for session beans only.
You find remove(handle) & remove(primarykey) methods in EJBHome.
If it's true how client will call remove for entity bean.. give me example
like e.g. Cart.remove(); where cart is remote component interface.

Thanks
Nehul
[ February 06, 2004: Message edited by: Nehul Nalekar ]
 
Ken Boyd
Ranch Hand
Posts: 329
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the answer. Close it.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!