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

why two interface - home and remote  RSS feed

 
punit pandey
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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
 
Florence Cheung
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!