Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The creation of EJBObject

 
Roger Cavallo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ejbCreate method of a stateless session bean can get a reference for EJBObject through SessionContext. So that means ejbCreate on the stateless session bean lying in pool is called when the client invokes a business method. Before that container just calls constructor and setSessionContext and places it in pool.
Otherwise, if the sequence of constructor, setSessionContext and ejbCreate is called at containers will (before placing bean in the pool) than at that time EJBObject might not exist.
 
Roger Cavallo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Opps someone already posted this question thanks anyway
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic