Basic HTML version of Foils prepared 3 Feb 98

Foil 9 RMI Remote Interface

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


1 In setting up an RMI client and server, the starting point is the interface. This interface gives specifications of all the methods which reside on the server and are available to be called by the client.
2 This interface is a subclass of the Remote interface in the Java rmi package, and must available to the compiler on both the client and server.
3 Example: A server whose object will have one method, sayHello(), which can be called by the client: public interface Hello extends java.rmi.Remote { String sayHello() throws java.rmi.RemoteException; }

in Table To:


© 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