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
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