• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

lookup of entity bean in session bean

 
Stephen Lee
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In session facade, the session bean is responsible for looking up of the entity bean. However, I found that there are 4 differences in placing the lookup code in the session bean:
1) the code of the lookup is placed in the ejbCreate( ) method
2) the code of the lookup is placed in the ejbCreate( ) method and ejbActivate( ) method
3) the code of the lookup is placed in the setSessionContext( ) method
4) the code of the lookup is placed in the method which is not corresponding to the session bean
What is the difference between those cases? When should I use them? How about the performance?
Thank you very much!
Stephen Lee
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic