I have not understood.
I have one more doubt regarding this.
When we bind the object of this class in the rmi registry on server side, we do:
This binds the remote object "stub" or simply the remote object with the name "stub_object" in the rmi registry ?
On client side when we do:
Here the client gets the stub to the remote object according to the spec.
The remote object is obj. We are binding the remote object and not the stub to the registry, so the client should also get the remote object upon lookup. Why it is said that the client gets the stub to the remote object, upon lookup?
By extending this class, the object will be automatically exported for RMI access
Are talking about the 'obj' object to be automatically exported for RMI access? But we are doing that explicitly using the registry.