aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes lookup of entity bean in session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "lookup of entity bean in session bean" Watch "lookup of entity bean in session bean" New topic
Author

lookup of entity bean in session bean

Stephen Lee
Ranch Hand

Joined: Dec 11, 2001
Posts: 74
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: lookup of entity bean in session bean