• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

A little bit of Clarification needed in HFEJB

Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Cowgirl and Author
Posts: 1589
  • 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,
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic