• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

EJBContext Interface for retreiving local component interface

 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
I am a man of mystery. Mostly because of this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic