try { BasicAccountFactory_Impl factory = new BasicAccountFactory_Impl(); Naming.rebind(ACCOUNT_FACTORY_NAME, factory); System.out.println("Factory successfully launched."); } catch (Exception e) { System.out.println(e); }