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??
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.
SCEA, SCBCD, SCJP
Joined: Oct 03, 2003
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 ??