FileDocCategorySizeDatePackage
MyClient.javaAPI DocExample681Mon May 01 14:41:46 BST 2000None

MyClient

public class MyClient extends Object

Fields Summary
Constructors Summary
public MyClient(String host)

        try {
            RmtServer server = (RmtServer)
                Naming.lookup("rmi://"+host+"/NiftyServer");
            System.out.println( server.getDate(  ) );
            System.out.println(
              server.execute( new MyCalculation(2) ) );
        } catch (java.io.IOException e) {
              // I/O Error or bad URL
        } catch (NotBoundException e) {
              // NiftyServer isn't registered
        }
    
Methods Summary
public static voidmain(java.lang.String[] args)

        new MyClient( args[0] );