• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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.
 
I am mighty! And this is a mighty small ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic