Basic HTML version of Foils prepared July 5 98

Foil 50 Publishing the Client Object Reference (RMI)

From FMS: Forces Modeling and Simulation Handout JSU HPC Summer Institute for Undergraduates, Jackson MS -- June 15 1998. by Wojtek Furmanski, Subhash Nair, Tom Pulikal


try {
control = new RMIClientControlImpl(thisClient);
identity= "rmi://jojo.npac.syr.edu:7000/" + thisClient.clientName; Naming.rebind(identity, control); System.out.println("ClientControl Export done.");
} catch (RemoteException re) { System.out.println("Exception in ClientControlImpl.main: " + re); }
catch (MalformedURLException e) {
System.out.println("MalformedURLException CoordinatorImpl.main: " + e);
}
try { int id= thisClient._chatBahn.register(thisClient.clientName, control);
thisClient.clientID=id;
System.out.println("Registration Succeeded");
} catch (jdceRMIBahnException e) {
System.out.println(e.typeToString(e.getType()));
System.out.println("Registration Failed"); }
catch (jdceRMIClientException e){}
catch (RemoteException e) {
System.out.println("OPOOOOuch!!");
}
}



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998