FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Dobbs M-Dev
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
July 01, 1999

Jini and Network-Enabled Devices

(Page 3 of 3)
Jul99: Jini and Network-EnabledDevices


(a)
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)
javac PrintRemote.java

(c)
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
Previous Page | 1 | 2 | 3
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK