Remote Server
public class RemoteServer
extends UnicastRemoteObject
implements RemoteInterface {
public RemoteServer () throws RemoteException {
// just call the superclass constructors
public Object WorkerCompute(Skeleton skel, Object task_in) {
System.out.println("Got a task, computing ...");
return(skel.compute(task_in));
public static void main(String [] args) throws Exception {
// create an implementation object
RemoteServer w = new RemoteServer();
// now notify the name of the rmo
Naming.rebind("Worker",w);
System.out.println("Worker server initialized");