• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Function of Home object

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic