Nội dung text Unit - 5.pdf
The RMI allows an object to invoke methods on an object running in another JVM. The RMI provides remote communication between the applications using two objects stub(Client Side) and skeleton(Server Side). Q1. The Roles of Client and Server OR How Client Server Communicates in Distributed Systems OR Roles of Client & Server in Distributed Systems Figure .1. Transmitting objects between client and server In the Traditional Client / Server model, the client translates the request to an Intermediary transmission format and Sends the request data to the server. The server parses the request format, computers the respose and formats the respose for transmission to the client. The client then parses the response and displays it to the user. Now, we have to design a transmission format and We have to write code for conversion between your data and the transmission format. Now, What we want is a mechanism by which the client programmer makes a regular method call, The problem is that the object that carries out the work is not located in the same virtual network. The solution is to install a proxy for the server object on the client. The client calls the proxy , making a regular method call. The client proxy contacts the server.