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

Home / Remote Interfaces  RSS feed

 
Raju Vemula
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Could someone tell me why EJB needs two interfaces, Home and Remote?

thanks in advance.
Raju Vemula
 
Brian Tinnel
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the thinking is that the Home interface provides factorylike methods to create objects, find existing objects, and remove objects. The Remote interface gives you access to the instance of the object that was created/found.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!