You are on page 1of 1

Advance Java Lab Manual

Experiment No. 1 Aim : Program to download file at the client application from remote server using RMI. Theory : Remote Method Invocation RMI is a simple method used for developing and deploying distributed object applications in a java environment creating a distributed object application using RMI is as simple as writing standalone java application. RMI enables a programmer to create distributed java application in which the methods of remote java objects can be called from other java virtual machine running either can same host as an different hosts scattered across a network. The java.rmi and java.rmi.server packages contain the interface and classes that define functionality of java RMI system. RMI Architecture: RMI architecture consists of 4 layer viz. application, stubs, Remote Reference and transport layer. When a client application makes a remote method call, the call passes to the stub & then on to the remote Reference layer. It then passes it via the n/w layer from client to server where remote reference layers on server side the arguments and passes them to server, class file. The return value of method call then takes reverse trip back to client side. RMI Registry Service: In any distributed application for the client side the application to make a call to a remote object that client application should first be able to a locate the remote object. RMI provides a registry service as name service, which makes this possible. A Server registers any remote objects i.e. exporting with a name server called a registry. When a client wishes to obtain a reference to a remote object is returned if the lookup successful.

Conclusion: Thus we have studied the concept of RMI and implemented the program to download the file.

Department of CSE & I T A.G. Patil Institute of Technology, Solapur.

You might also like