Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBContext Interface for retreiving local component interface

 
Gaurav Chikara
Ranch Hand
Posts: 412
  • 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
 
amol deshpande
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic