O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required