Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • 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
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!