Publishing the Client Object Reference (RMI)
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);
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!!");