Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Function of Home object  RSS feed

 
Rajib Sarma
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
What is the function of Home Object? Does it create/find/remove EJB Objects? or does it create/find/remove the bean instances? Please explain.
Thanks
-Rajib
 
faiza athar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
The home interface defines BEAN's lifecycle.
In my opinion when we create Entity BEans the EJB home works with the EJB server to create a BEAN, and adding its data to the dB.
This process can be further broken to three steps where
1)the EJB obj is created on server
2)ejb instance associated with this ejb object
3)ejbCreate() matched with the create() and a Primary key created(dB part)
4) ejbPostCreate() called
5) EJB obj returned to the client
Similarly with find and remove.
Hope you can differentiate b/w the bean and instance's involvment in the create method.
Similarly we can also discuss the find and remove.
faiza
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!