08-03-2012, 02:14 PM
COMMUNICATION BETWEEN DISTRIBUTED OBJECTS
[attachment=18107]
INTRODUCTION
Distributed object communication realizes communication between distributed object s in the distributed computing environment.
Main role is to interconnect objects residing in non- local memory space and allowing them to perform remote calls and exchange data.
Implementation can be realized by using stubs and skeleton.
Stubs and skeletons
Generated objects whose structure and behavior depends on the chosen communication protocol .
Provides some additional functionality.
Ensures reliable communication
Steps
caller calls a local procedure implemented by the stub
Stub marshalls call type and input arguments into a request message
client stub sends the message over the network to the server and blocks the current execution thread .
server skeleton receives the request message from the network
skeleton unpacks call type from the request message and looks up the procedure on the called object
skeleton unmarshalls procedure arguments