• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Stateless Session Bean ejbCreate() access

 
Vaithiya Sundaram
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?
 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vaithiya, this thread may have your answer.

Joyce
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic