FileDocCategorySizeDatePackage
PeopleFinderServer.javaAPI DocExample2425Thu Dec 15 21:40:16 GMT 2005com.oreilly.jent.people.soap

PeopleFinderServer

public class PeopleFinderServer extends Object
Simple server "harness" for our RMI PeopleFinder, creates a server object, creates a local RMI registry, and binds the PeopleFinder to a name there.

Fields Summary
private static Logger
sLog
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


         
        try {
            // Create a PeopleFinder RMI object
            PeopleFinder finder = new PeopleFinderImpl();
            // Create an RMI registry
            Registry reg = 	LocateRegistry.createRegistry(1099);
            // Bind our remote object to a name in the registry
            reg.rebind("peopleFinder", finder);
            sLog.info("PeopleFinder bound to name \"peopleFinder\", waiting...");
        }
        catch (AccessException ae) {
            sLog.severe("Failed to register remote object: " + ae.getMessage());
        }
        catch (RemoteException re) {
            sLog.severe("Failed to register remote object: " + re.getMessage());
        }