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 Certification (SCBCD/OCPJBCD) and the fly likes Coffee Cram Ch 5 Question 8 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 » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Coffee Cram Ch 5 Question 8" Watch "Coffee Cram Ch 5 Question 8" New topic
Author

Coffee Cram Ch 5 Question 8

Arun
Ranch Hand

Joined: Oct 03, 2003
Posts: 40
Coffee Cram Ch 5 Question 8
What is true about the clients view of an entity bean's remote component interface?
A. Multiple clients can access the same entity object concurrently.
B.
C.
D. Business methods cannot return a reference to the entity object.
---

To the above question the book says that the correct answer is A. But I thought that D is also a correct answer. Is it not true that you never want to return a reference to the entity bean to the client..( you want the client to always goes through the EJB Object to get to the client)

Or does entity object refer to something else?? Am i mistaking it to be the entity bean??

Any clarifications would be greatly appreciated.

Thanks.
Devender Thareja
Ranch Hand

Joined: Jul 14, 2005
Posts: 187
Arun,

The entity object here is the implementation of Entity Bean, created by container. Bean law forbids giving any reference of the entity object to any client. You are mistaking it to be EjbObject. EjbObject reference can be handed out to clients.


Devender Thareja
SCEA, SCBCD, SCJP
Arun
Ranch Hand

Joined: Oct 03, 2003
Posts: 40
Thankyou for your reponse. From what you are saying "Bean law forbids giving any reference of the entity object to any client" option D would be true.
D. Business methods cannot return a reference to the entity object.
And that was my oiginal question.. So for that question option D should also be listed as the correct answer..Right ??
B.Sathish
Ranch Hand

Joined: Aug 18, 2005
Posts: 372
They mean EJBObject, ie reference to component interface when they say reference to Entity Object. The actual exam questions will be clearer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Coffee Cram Ch 5 Question 8
 
Similar Threads
References to entity object remote interfaces
Doubts in HFEJB
HFS: ambiguity in coffee cram ?
Mock questions required answers
HFEJB: Coffee Cram Entity Beans