A URL-Naming Scenario

Let's walk through the steps of a URL-naming:

  1. 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 );
    
  2. 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. ...

Get JavaBeans Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.