FileDocCategorySizeDatePackage
DateServer.javaAPI DocExample597Fri Sep 01 14:24:14 BST 2000darwinsys.distdate

DateServer

public class DateServer extends Object

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


		// You may want a SecurityManager for downloading of classes:
		// System.setSecurityManager(new RMISecurityManager());

		try {
			// Create an instance of the server object
			RemoteDateImpl im = new RemoteDateImpl();

			System.out.println("DateServer starting...");
			// Locate it in the RMI registry.
			Naming.rebind(RemoteDate.LOOKUPNAME, im);

			System.out.println("DateServer ready.");
		} catch (Exception e) {
			System.err.println(e);
			System.exit(1);
		}