ORB Manager Example

The orb manager example illustrates the mechanism used to interface with the ORB Manager.  It uses the Server from the Bank example.


From this example, you will learn how to:

Directory Contents

Building this example

Typing make(vbmake on Windows) in the ir subdirectory will cause the following executable to be built:

Compilation Warnings

You will see the following compilation warning when you type make(vbmake on Windows) in the orb_manager subdirectory or when you explicitly compile Console.java using: This warning occurs because the example uses a Java API that has been deprecated since JDK1.1. The calls to the deprecated Java API have not been changed for the sake of JDK1.0.2 users.

Running this example

To run the examples, first make sure that the VisiBroker Smart Agent (osagent executable) is running on your network. Then start the server process from the Bank example directory:

The ORBsecureShutdown option is set to false to allow the ORB Manager to do a shutdown on the server.

Next, from the orb_manager directory, run the Console program:

The Console program binds to the ORB Manager and allows the user to query through command line input.  Press return to see a list of options.

To connect to a server through the console, first run osfind in another window to determine the repository ids and names of available servers:

      prompt> osfind
osfind will display the available osagents and registered implementations.  For example, running the bank server, osfind will display (among other things):

    osfind: Following are the list of Implementations started manually.
        HOST: <hostname>

                REPOSITORY ID: IDL:Bank/AccountManager:1.0
                        OBJECT NAME: BankManager

This is the information you need in order to connect the Console application to the bank Server:

You are now connected to the server through the console.  Press return at the ORBManager prompt in order to see your options.



Return to the top-level examples page.