FileDocCategorySizeDatePackage
RMIScheduler.javaAPI DocExample757Tue Jan 20 22:05:48 GMT 1998dcj.examples.dbase

RMIScheduler

public class RMIScheduler extends Object
Source code from "Java Distributed Computing", by Jim Farley. Class: RMIScheduler Example: 7-12 Description: An agent that uses the RMI-based database objects.

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

    System.setSecurityManager(new RMISecurityManager());
    try {
      RMISchedDbase dbase =
        (RMISchedDbase)Naming.lookup("//my.server/ScheduleDataServer");
      Vector resources = dbase.getAllResources();
      System.out.println("Got " + resources.size() + " resources.");
    }
    catch (Exception e) {
      System.out.println("Exception: " + e);
      e.printStackTrace();
    }