Basic HTML version of Foils prepared 3 Feb 98

Foil 15 Client applet or application

From Overview of Distributed Objects and RMI in Java 1.1 ARL Database Tutorial and CPS616 -- February 98. by Nancy McCracken

Java classes for RMI hello example for Foil 15
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.
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");
Then the client can call any method in the interface to this server: obj.sayHello();
Look at Hello.html and HelloApplet.java



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998