Registry reg = LocateRegistry.getRegistry(); Account a = null; try { a = (Account)reg.lookup(name); } catch (Exception e) {} return a;
Registry reg = LocateRegistry.getRegistry(); System.out.print("Registering new account..."); reg.rebind(a.getName(), a); System.out.println("done."); return true;