• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

why two interface - home and remote

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everyone,
Can anyone tell me why there are two interface in EJB namely home interface and remote interface. What is the design strategy begind this. Why should not we allowed to access all PK, create and business logic method from the same commond interface.
Thanks in advance
Punit
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Home interface is primarily for lifecycle operations such as creating,finding,removing EJBs. Remote interface is for business methods.
In EJB specifications, there are different layers such as client, bean,container, persistence manager (in EJB specification 2.0). There are contracts/rules between these layers. As a result, your bean can run in different containers or your client can access different beans. The server vendors can build their servers on different technologies, with many different capabilities. You follow the rules of the bean-development contract, then the container is able to provide system-level services.
Hope this helpful!
Florence
 
punit pandey
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Florence,
Thanks for your advice. But I want to know design strategy behind this. What design goals EJB designers wanted to achive by creating two interfaces.
Punit Pandey
 
reply
    Bookmark Topic Watch Topic
  • New Topic