• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Coffee Cram Ch 5 Question 8

 
Arun
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Arun
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 372
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They mean EJBObject, ie reference to component interface when they say reference to Entity Object. The actual exam questions will be clearer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic