1 | The client must also have a security manager. Applets already have one; applications will make the same call to System.setSecurityManager as the server did. |
2 | The client will look up the server name in the name registry, obtaining a reference to the remote object: String url="rmi://osprey7.npac.syr.edu/"; Hello obj = (Hello) Naming.lookup(url + "HelloServer"); |
3 | Then the client can call any method in the interface to this server: obj.sayHello(); |
4 | Look at Hello.html and HelloApplet.java |