Methods Summary |
---|
public void | asyncExecute(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.Object | execute(WorkRequest work)
return work.execute();
|
public java.util.Date | getDate()
return new Date();
|
public StringEnumeration | getList()
return new StringEnumerator(
new String [] { "Foo", "Bar", "Gee" } );
|
public static void | main(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");
}
|