Forums Register Login

local interface vs remoter interface.

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Your question is very well answered here. http://www.onjava.com/pub/a/onjava/2001/05/10/ejb.html

Thanks.
Uh oh, we're definitely being carded. Here, show him this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 685 times.
Similar Threads
EJB Question
EJB 2.0 - Local - Remote
Local interface and local home interface
Why do we need Entity Bean Local Component Interface ?
Entity Relationships
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:40:04.