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