• 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
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

A little bit of Clarification needed in HFEJB

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic