Let's walk through the steps of a URL-naming:
The server gives URL names to its objects. The server invokes register() for every object reference it wants to associate with a URL name. For each object, the server must pass a URL string and an object reference. Here is an example of the code:
// Create CORBA Object HelloImpl hi = new HelloImp( "Hello" ); // Register the URL of this object netscape.WAI.Naming.register( "http://rick:80/Hello" , hi );
The client binds to the URL. The client invokes resolve() on the Name Server and then passes it the URL of the remote object. This method returns the object reference associated with this URL. You must then typecast the generic CORBA object that is returned to its interface type. ...