I am pretty new to RMI and I have a trivial question. Is it necessary that all the server code has to be implemented from an interface? I went through some sample code and all seem to be doing the same. Is it just a standard or it has to be done like that. Plz help clearing the doubt.
Yes, you design an interface that extends the Remote interface, and then implement that interface in your server. It's required so that both the stub and the actual implementation provide the same methods.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.