Java remote method invocation: Difference between revisions

Content deleted Content added
Example: Further simplification of example code
Fixing typo raised by BracketBot
Line 29:
import java.rmi.registry.*;
 
public class RmiServer
extends UnicastRemoteObject
implements RmiServerIntf {
public static final String MESSAGE = "Hello world";
Line 82 ⟶ 83:
RmiServerIntf obj = (RmiServerIntf)Naming.lookup("//localhost/RmiServer");
return obj.getMessage();
}
}
</source>