<b>(a)</b> import java.rmi.RemoteException; import java.rmi.Remote; public interface PrintRemote extends Remote { String print(String printerName, String fileName) throws RemoteException; String checkQueue(String printerName) throws RemoteException; } <b>(b)</b> javac PrintRemote.java <b>(c)</b> rmic PrintRemote
Example 2: Creating a print-service interface. (a) writing a Java interface to extend Remote; (b) compiling the class file with the javac compiler; (c) compiling the class file with the RMI compiler.
Copyright © 1999, Dr. Dobb's Journal