This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

local interface vs remoter interface.

Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • 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.
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
  • Quote
  • Report post to moderator
Your question is very well answered here.

if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!