• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown


Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A client can access EJB thru EJBObject. The EJBObject must know every business method associated w/ EJB thru remote interface. Again, client can�t instantiate an EJBObject directly because EJBObjects could exist on a different machine than the client resides. The client acquires reference to an EJBObject thru HomeObject. The HomeObject implements the home interface, which defines for creating , destroying, and finding EJB objects.
Above is my abstraction from the ED ROMAN book. Kindly answer my following questions.
1. Is that true that EJB, EJBObject and HomeObject may reside in different container ?.
My comments: HomeObject(EJBObject factory) can locate the EJBObject since it may reside in different m/c. How does the client locate HomeObject in case it resides in other m/c ?
2. I really don�t understand the requirement of HomeObject since all the business methods are available
EJBObject(which implements remote interface). Utlimately we need instance of EJB; why we can�t achieve it from the EJBObject itself instead of going thru HomeObject ?
Kindly help me out to understand. Thanks
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Yah. EJBObject and EJB Home can reside on different servers.
That's where u r utilising the full capability of EJB.
2.EJBHome is for maintaining the lifecycle of an Enetrprise Bean. It does all the functionality of find , lookup for the bean.There is no meaning non existing of HOME object.
Is that a spider in your hair? Here, threaten it with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic