• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Coffee Cram Ch 5 Question 8

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??
 
Ranch Hand
Posts: 372
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic