The URLNaming example

The URLNaming example illustrates how to use the URL Naming Service provided by VisiBroker for Java. This service allows you to associate a URL (Uniform Resource Locator) with an object's IOR (Interoperable Object Reference). Once a URL has been bound to an object, client applications can obtain a reference to the object by specifying the URL as a string instead of the object's name. In this example, we use the Bank example discussed earlier to illustrate URL Naming.


From this example, you will learn how to:

Directory Contents

Building this example

Typing make (or vbmake on Windows) in the URLNaming subdirectory will cause the Bank.idl to be run through the idl2java compiler. It will also build the following classes for the examples described above:

Running this example

To run this example, first make sure that the VisiBroker Smart Agent (osagent executable) is running on your network. Then start the gatekeeper (or a http server) using the command: Then start the Bank Server using the command:

Note that in the above command line, the hostname should be replaced with the hostname where the gatekeeper or the http server is running. Also note that the .ior extension is required for the filename if the gatekeeper is involved and not if the http server is used. Next, open a user's bank account and query the balance in the account using the command

or  



Return to the top-level examples page.