• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJBObject in ejbCreate of stateless sb

 
Alex Sharkoff
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am preparing for SCBCD exam using "Head First EJB" as a textbook (excellent book, thanks a lot to the authors). One question keeps puzzling me.
The EJB spec says that the EJBObject can be accessed from ejbCreate method of stateless sb ( using sessionContext#getEJBObject() method). What EJBObject are we accessing??? The stateless sb creation is not linked to the client's call to create, and therefore at the time of container executing an ejbCreate method on the stateless sb there is no EJBObject (i.e. no client).
I'd greatly appreciate if you could shed some light on this issue.
Thanks a lot.
 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread may have your answer.
Joyce
 
Alex Sharkoff
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joyce,
Thanks a lot. That was exactly what I was looking for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic