0% found this document useful (0 votes)
49 views1 page

Advance Java Lab Manual

The document discusses Remote Method Invocation (RMI) which allows Java objects to be executed remotely. It describes the RMI architecture as having 4 layers - application, stubs, remote reference, and transport layers. When a client makes a remote call, the request passes through the stub layer to the remote reference layer on the server, where the arguments are passed to the server class and return value takes the reverse trip back. The RMI registry service allows clients to locate remote objects by having servers register objects with a registry that clients can then lookup. The aim of the experiment is to program a client application to download a file from a remote server using RMI.

Uploaded by

PR786
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views1 page

Advance Java Lab Manual

The document discusses Remote Method Invocation (RMI) which allows Java objects to be executed remotely. It describes the RMI architecture as having 4 layers - application, stubs, remote reference, and transport layers. When a client makes a remote call, the request passes through the stub layer to the remote reference layer on the server, where the arguments are passed to the server class and return value takes the reverse trip back. The RMI registry service allows clients to locate remote objects by having servers register objects with a registry that clients can then lookup. The aim of the experiment is to program a client application to download a file from a remote server using RMI.

Uploaded by

PR786
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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