FileDocCategorySizeDatePackage
ActivatableClient.javaAPI DocExample1107Wed Apr 05 11:25:42 BST 2000None

ActivatableClient

public class ActivatableClient extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

    String host = argv[0];
    String name = argv[1];
    try {
      // Set the RMI security manager, in case we need to load remote classes
      System.setSecurityManager(new RMISecurityManager());
      // Lookup activatable object
      ThisOrThatServer server =
        (ThisOrThatServer)Naming.lookup("rmi://" + host + "/" + name);
      System.out.println("Got server");
      System.out.println(server.doThis("something"));
    }
    catch (Exception e) {
      System.out.println("Error while looking up server:");
      e.printStackTrace();
    }