Server Side Registration.
ExampleImpl obj = new ExampleImpl (); Naming.rebind ("//localhost/Example", obj);
Client Side Lookup.
Example object = (Example) Naming.lookup ("//localhost/Example"); object.printString ("Hello RMI !");