• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion about SFSB creation in HF EJB

 
Li Xin
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
In HFEJB page 94, it says that the bean is created BEFORE the EJB Object is created, whereas in page 100, it says the bean is created AFTER the EJB Object is created, so which one is correct? Why is the inconsistency here?
Thanks.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The container has to first create the EJBObject and SessionContext. Once the stateful session bean has been created, it can then be linked to the SessionContext and EJBObject by invoking setSessionContext() and
ejbCreate() on the instance. The container can now return a stub, ie a reference to the EJBObject, to the client.
 
cyril vidal
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please refer to pages 192-193 of HFE for the different steps.
Regards,
Cyril.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic