Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

local interface vs remoter interface.

 
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is said that

"local interface / colocated beans do not need to use the network to communicate, since they are in the same JVM. Where as remote interface makes use of network to communicate."

Consider a Scenario:
=======================
Servlet --> Session Bean --> Entity Bean.
(Session and Entity bean are using remote interface)
Servlet makes the remote call to Session Bean, and Session bean calls
Entity Bean.
My question:
===============
Here we see that both Session Bean and Entity Bean are located
in the same container, then why there should be a delay in calling
Entity bean from Session Bean.
How does local interface help in the above scenario.
Note:
===========
I understand that in co-located beans the objects are passed by reference
and not by value.
Could anyone give a clear explaination on this topic. Your help
is appreciated.
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your question is very well answered here. http://www.onjava.com/pub/a/onjava/2001/05/10/ejb.html

Thanks.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic