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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
wood burning stoves
 
subject: lookup of entity bean in session bean
 
Similar Threads
ejbCreate() method
regardin ejbCreate()
why ejbCreate can't lookup..........
Confirmation Required
legal ejbCreate method