Explain how RMI clients contact remote RMI servers.- The client procedure calls the client stub in the normal way. - The client stub builds a message and traps to the kernel. - The kernel sends the message to the remote kernel. - The remote kernel gives the message to the server stub - The server stub unpacks the parameters and calls the server. - The server does the work and returns the result to the stub. - The server stub packs it in a message and traps to the kernel. - The remote kernel sends the message to the clients kernel. - The clients kernel gives the message to the client stub. - The stub unpacks the result and returns to the client.What are the basic steps to write client-service application using RMI?- Assigning the security manager and then obtaining the reference to the service. - Contacting the RMI registry to obtain the remote object’s reference and invoking its methods. - Requesting the name for the service. - Invoke the remote method.
|