CORBA 2.3.3 Getting Started Guide (NonStop CORBA 2.3.3+)
These files contain the CORBA-specified "Java language mapping" translation of the interface definition
provided in the stack.idl file. The compilation steps use the NonStop Server for Java tools to
compile the programs. During the compilation, the Java compiler uses the NonStop JORB
implementation files, which are located in the $JAVA_HOME/lib/jorb.jar file.
Configuring NonStop CORBA for the Stack
Example
To run the Stack example, you must update the configuration database by adding an entity and several
key-value pairs, but only after you have installed and configured NonStop CORBA.
To update the configuration database for the Stack example, add the tcp_server entity to the
NonStop CORBA configuration database by entering:
entityaddkeyvalue tcp_server@ORB tcp_server true
entityaddkeyvalue tcp_server@ORB port_number 0
entityaddkeyvalue tcp_server@ORB host_name <nnn.nnn.nnn.nnn>
Note that in setting the host name you can enter either a host name or an IP number.
Running the Stack Example on OSS
The Stack example is now ready to run. Before running the program, make sure that you have started
NonStop CORBA using the Console.
To run the Stack example you will need two OSS windows. In each window, navigate to the directory
where the Stack example was built, javasamples/stack. Also, make sure that each window has the
correct environment setup.
In one window, start the server program by using the following OSS command:
java Server -ORBprofile tcp_server
In the other window, start the client program by using the following OSS command:
java Client -ORBprofile tcp_client
When you run the client, you will see the following output in its window:
Top: 100
Top: 200
Top: 300
Top: 400
Top: 500
Top: 600
Top: 700
Top: 800
Top: 900
Top: 1000