I surfed the net on this. Couldn't find any appropriate tutorials.
Please explain this:
How to use RemoteObject.toStub(Remote rmo) for dynamically creating stub of remote object? How these stub objects are interpreted at client end and save the task of running rmic utility.
You don't. That only returns an existing stub. The stub is created when you export the object. The stub is dynamic under the conditions specified in the Javadoc preamble for
UnicastRemoteObject.They are created by
java.lang.reflect.Proxy, implementing the sameRemote-extending interfaces as the remote object, and with anInvocationHandlerthat does all the remoting for you. The client just sees it as an implementation of the remote interface(s).