Content deleted Content added
m Removed unnecessary spaces, removed "public" from interface method. |
m Better variable name: server instead of obj |
||
Line 50:
//Instantiate RmiServer
▲ RmiServer obj = new RmiServer();
// Bind this object instance to the name "RmiServer"
Naming.rebind("//localhost/RmiServer",
System.out.println("PeerServer bound in registry");
}
Line 78 ⟶ 77:
public class RmiClient {
public static void main(String args[]) throws Exception {
RmiServerIntf
System.out.println(
}
}
|