• Post Reply Bookmark Topic Watch Topic
  • New Topic

When to Call Remote and Local Interface.

 
Raza Mohd
Ranch Hand
Posts: 247
Java MyEclipse IDE MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i am new to EJB 3.0 .
I want to know that what is the condition when we call remote or local interface..

Please make it clear to me..

Thanks
Regards
Raza
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
 
Ram Narayan.M
Ranch Hand
Posts: 247
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Local interfaces plays a vital role in composing the relationship between two entity beans mapped to different database tables... This is done to express the foreign key relationship in Object oriented approach...
 
Harnoor Singh
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the client and server are using same JVM we can use local interface, when they use different JVMs we have to use remote interface.
 
Ram Narayan.M
Ranch Hand
Posts: 247
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seconding Harnoor,

When Servlet interacts with EJB Bean, that is both servlet and EJB are deployed in same server, Servlet can access the bean methods using Local interface...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!