Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



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

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

 
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..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!