Professional Documents
Culture Documents
Communication module
Key terms :
1) request-reply protocol
2) Client side communication module (request id, message type, remote
object reference)
3) Server side communication module(calling the dispatcher class,gets
local object ref from remote
reference module)
We can see this communication module on both the client side and the server side.
These communication modules will cooperate with each other through a request
reply protocol i.e the client is used to send the request message through request
where as the server side communication module is used to send the reply message.
Client side communication module
Communication module on the client side specifies 1) message type 2) request id 3)
remote reference of the object to be invoked.
Server side communication module
Server side communication module calls the dispatcher class of the object on which
the method has to be invoked while doing this it passes the local reference of the
object which it gets from the remote reference module
The remote object table maintains an entry for all remote objects held by a process.
For example the remote object table on the server side maintains an entry for the
remote object B held by that process.
An entry for each local proxy is also maintained for example an entry for the proxy
for B will be maintained in the remote object table on the client side.
Whenever a remote object is passed as an argument or as a result for the first time
the remote reference module will create a remote object reference and adds this
reference to the remote object table
Whenever the remote object reference is passed in a request or a reply message
the remote reference module will be asked for its corresponding local object
reference, which may refer either a proxy or a remote object
3. Servants
Key terms
1) Definition? ( a servant can be defined as an instance of a class which provided
the body of the
Remote object)
2) Where they live and when they are created?( they live in server processes
and they are created
when ever a remote class is instantiated and
lives till
they are not referenced and finally garbage
collected)