• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why does an EJB requires two interfaces(Home & Remote)?

 
Chetan M
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
"An EJB will have two interfaces..(Home & Remote)". Y is that ? what was the need to have two interfaces.
Home Interface will have just create() & Remote interface will have all bussiness rules signatures.So what's the need to have two interfaces..?
Can any one give more information on that.
Thanks in advance,
Chetan
 
Pearlo Muthukumaran
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Home Interface is mainly used by the EJB Container to perform the management activities of the bean such as activation, passivation etc.
Whereas, the Remote Interface is the one which actually exposes the busines methods. This is mainly to insulate the client applications from
"knowing" or "encapsulating" the methods of how
container manages the Beans
Hope this helps
 
Chetan M
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kala,
thanks for the info..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!