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