Gain Immediate access to our Essays
FREE access exchanged for your work, or pay £9.99
Words: | Submitted: Tue Jun 20 2006
... The server must first bind its name to the registry> The client lookup the server name in the registry to establish remote references.> The Stub serializing the parameters to skeleton, the skeleton invoking the remote method and serializing the result back to the stub. Stub and Skeleton:> A client invokes a remote method; the call is first forwarded to stub.> The stub is responsible for sending the remote call over to the server-side skeleton> The stub opening a socket to the remote server, marshalling the object parameters and forwarding the data stream to the skeleton.> A skeleton contains a method that receives the remote calls, unmarshalls the parameters, and invokes the actual remote object implementation. Flow Diagrams: The following will represent: ? The RMI Client side flow diagram ? The RMI Server side flow diagram IMPLEMENTATION: RMIFile INTERFACE: /*Import package java.rmi*/ import java.rmi.*; /*Define public interface that is an extension of java.rmi.Remote*/ public interface RMIFile ...
FREE access exchanged for your work, or pay £9.99