FileDocCategorySizeDatePackage
ServerMain.javaAPI DocExample664Fri Apr 20 21:16:34 BST 2001None

ServerMain

public class ServerMain extends Object

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

		// System.setSecurityManager(new RMISecurityManager());
		try {
			System.out.println("Server: Constructing TickerServerImpl");
			com.darwinsys.callback.TickerServerImpl im =
				new com.darwinsys.callback.TickerServerImpl();

			System.out.println("Server: Registering with RMI...");
			Naming.rebind(com.darwinsys.callback.TickerServer.LOOKUP_NAME, im);
			System.out.println("Server: bound and ready.");
			im.start();		// start background thread running.
		} catch (Exception e) {
			System.err.println(e);
			System.exit(1);
		}