Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Please help with Stateless bean question

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

On Pg227 of HFEJB, it says a bean(talking about statelss EJB) is not tied to a client's EJB Object until the client gets serious and calls a business method.

Then on pg 228, it says we can use SessionContext to get a reference to EJBObject in ejbCreate().

Isn't there a contradiction here? How can we get a reference to the EJBObject when it's not even there?

Am I missing something here?

Sorry for my ignorance. Thank you for your time.


Kin
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is true, it is bit confusing. There big discussion thread on this topic and u can do search on that. In brief i can tell you there is creation of temporary EJBOBject for stateless session bean during ejbCreate() method.

--Prashant
 
Kin Ng
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, no wonder...
didn't know there is such kind of thing as temp EJBObj...
Thank you for your clarification.

btw, I just passed the exam today and fortunately they didn't ask
anything on that. = =V
 
Ranch Hand
Posts: 2107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kin, congrats!

any special advice for us preparing for it
 
Kin Ng
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My advice:
Do lots of mocks on the last few days before u take the exam...
the one in HFEJB and on jDiscuss(there are lots there)
get familiar with the questions and style..
they are generally harder than the real test...

Nothing should really surprise you on the exam.

Good luck.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic