Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

A little bit of Clarification needed in HFEJB

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
On page 101, at the top paragraph, it says in 2nd sentence:


...
The Home gives the client a stub to an existing EJBObject but does not ...
^^^^^^^^


Although I know the answer is: to a newly created EJBObject, but it confuses me at the first glance. So, I check the spec, and I know it is newly created one.
Thanks,
John
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy John,
Yeah, this is confusing. According to the OID for stateless beans, you're right it DOES show that a *new* EJBObject is created for the stateless bean client. But the whole issue of stateless bean EJB objects is a little strange, since the EJB object is available during ejbCreate() even though there IS no client... at that point. In reality, most implementations will not actually make a new EJB object, but we're not supposed to know that, so we should not have said it like that in the book.
But... I can promise that you are NOT tested on this part
The only thing you MUST know for the exam, with respect to EJB objects and stateless beans, is that the bean DOES have access to it's component interface during ejbCreate(), but calling getEJBObject or getEJBLocalOBject, even though that reference is not yet tied to a client.
cheers and good catch,
Kathy
 
    Bookmark Topic Watch Topic
  • New Topic