• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Local interface and Remote interface

 
Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
What is the difference between local interface and remote interface?

Thank you very much
Benson
 
Srinivas Bitla
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
EJB is used in distributed programming, where objects in one JVM communicate with objects in another JVM, which may reside anywhere. For this you need remote communication which can be implemented by Remote interfaces. But if your EJBs reside in the same JVM then you might not want to use overhead of Remote interfaces. In that case you go for Local interfaces. Remote communication suffers network overhead.
 
Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help. I appreciate it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic