I'm new on RMI.
Is there anyone can explain to me how to use RMI Stub class which is generated by invoking rmic command?
For my testing, I can only invoke rmi object nethod via its remote interface. Then what is stub used for when we are coding?
I do appreciate anyone's help.
Thanks very much,
When the remote object binds itself to the registry, what is actually bound is the stub.
So when the client does a registry lookup, what it gets is the stub. However from the client's point of view it is just some mystery object that implements the remote interface.
So you never have to use it directly, it is all automatic.