| |
.:For Network Programming
( SCN 4223 ) Purpose Only:.
|
AC990856
Page |
| |
| --»Assignment
9 --- RMI Lab Question |
| 1. What is Distributed Object System?
The Distributed Object System is a technology that combine networking and
object-oriented programming.
|
| 2. Aim of Distributed Object Technology?
Distributed Object Technology aims at Location transparency, which make it
easy to access and use an object node(remote object) located anywhere on the
network. Location transparency involves the following function:
· Location and loading remote classes
· Location remote object and provide a reference to them
· Enabling remote calls, including passing of the reference to remote
objects as arguments and accepting return values.
· Notifying program of network failures and other program.
|
| 3. How is RMI used for Distributed
System?
RMI enables a programmer to create distributed Java application, which the
method of remote Java objects can be call form other Java Virtual Machines
running either on same host or different host.
|
| 4. Architecture of RMI?
RMI architecture consists of four layer :
i. The application layer. Contains the actual implementation of the client
and server application.
ii. The proxy layer. Contain client stub and server skeleton objects.
iii. The remote refernce layer(RRL). Handles packaging of a method call and
its parameter and its return values for transport over the network.
iv. The transport layer. Sets up connections, manages existing connections
and handles remote objects residing in its address space.
|
| 5. What is meant by RMI Registry
Service?
Any server application, which wishes to make remote objects available to
client application, must first register those objects with a registry
services.
|
| 6. How to create RMI application?
To create an RMI application, the following step need to be followed :
i. Define an interface for the remote classes
ii. Implement the interface in aServer-side application
iii. Bind object to a registry service
iv. Create stubs and skeletons classes
v. Create and compile the client program to access the remote object
vi. Install file on the client and server machines
vii. Start the RMI registry
|
| 7. How to create distributed server
application?
To create distributed server application, this step must be follow:
i. run the RMI registry at a specified port.
ii. Run the server application in another DOS windows
iii. Run the client application.
|
| |
| |