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

Stateless Session Bean ejbCreate() access

 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not understand how Statelless SessionBean's ejbCreate() method can have
access to get a reference to its EJBObject?
My understanding is that...
1. Container creates Statelless SessionBean with executing newInstance,setSessionContext,ejbCreate
2. When client invokes create method in EJBHome, it creates
EJBObject, pulls one bean instance from pool, assign EJBObject-Bean
instance link and then returns stub for EJBObject
If this is true, ejbCreate() is executed before bean knows its EJBObject.
So, I do not understand how Statelless SessionBean's ejbCreate() method can have access to get a reference to its EJBObject?
 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vaithiya, this thread may have your answer.

Joyce
 
    Bookmark Topic Watch Topic
  • New Topic