FileDocCategorySizeDatePackage
MyServer.javaAPI DocExample1126Thu Nov 13 14:21:54 GMT 1997None

MyServer

public class MyServer extends UnicastRemoteObject implements Server

Fields Summary
Constructors Summary
public MyServer()

 
Methods Summary
public voidasyncExecute(WorkRequest request, WorkListener listener)


		Object result = request.execute();
System.out.println("async req");
		listener.workCompleted( request, result );
System.out.println("async complete");
	
public java.lang.Objectexecute(WorkRequest work)

		return work.execute();
	
public java.util.DategetDate()

		return new Date();
	
public StringEnumerationgetList()

		return new StringEnumerator( 
			new String [] { "Foo", "Bar", "Gee" } );
	
public static voidmain(java.lang.String[] args)

		System.setSecurityManager(new RMISecurityManager());
		try {
			Server server = new MyServer();
			Naming.rebind("NiftyServer", server);
System.out.println("bound");
		} catch (java.io.IOException e) {
			System.out.println("// Problem registering server");
		}