I am getting " java.rmi.NotBoundException " error on my client side when I try to lookup for server registry.
My server side code::
ATMFactoryImpl atmfactory = new ATMFactoryImpl();
Client side code:
ATMFactory factory = (ATMFactory)Naming.lookup("//localhost/atmfactory");
atm = factory.getATM();
I dont know why I am getting that exception, I am running rmiregistry.