Overview of RMI Applications
by, 07-07-2012 at 05:16 PM (884 Views)
Two separate programs are present in RMI applications, a client and a servlet. Typical program of servlet makes certain remote objects, makes the accessibility of the reference possible to these objects, or waits for invoking methods by the clients at these objects. Typical client progam gets reference to more than one remote object that is present at server which would invoke methods. Mechanism is provided by the RMI which makes communication between client and server. Also, information is passed on forward and backward. These applications are known as “distributed object application”.
Following is done by the distributed object applications:
- Locate remote objects. Many mechanisms could be used by applications to get references towards the remote objects. E.g, remote objects of application could be registered with simple naming facility of RMI. On other hand, it is possible for an application to pass as well as return the references of remote objects being other remotes invocation’s part.
- Communication with the remote objects. Communication details present in remote objects are usually tackled by RMI. Remote communication is same as the other Java method invocations for programmer.
- Load class definitions which pass around. As objects are allowed by RMI to get passed forward and backward hence mechanisms are provided to load the class definition of object and to transmit the data of an object.