• 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

EJBContext Interface for retreiving local component interface

 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Whizlabs
Mock exams had one question and its reasoning didn't satisfied me
Question was

Which method of the EJBContext interface is responsible for retreiving the local component interface of an entity bean

Choices

a) getEJBLocalHome
b) getEJBLocalObject (This should be correct answer)
c) getEJBObject
d) getELBHome
e) None of the above (This is marked as correct)

Explanation says "This is a tricky question See section xyz of EJB Specifications for details"
I dont remember section exactly but when I went there there was nothing written which could have substantitated this answer

Can any one pls share his/her views on it
 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
The reason is that...
getEJBLocalObject.....is in EntityContext and not in EJBContext.

but home getters are in EJBContext.........component interface getters are in 2 sub interfaces SessionContext and EntityContext

Regards
Amol.
 
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic