try { AccountManager mgr = new AccountManagerImpl(); Account one = new AccountImpl("Fred"); mgr.newAccount(one); Account two = new AccountImpl("Wilma"); mgr.newAccount(two); Naming.rebind("acctManager", mgr); } catch (Exception e) {}