CORBA 2.3.3 Getting Started Guide (NonStop CORBA 2.3.3+)
obtained by sourcing the env.sh script, as described in Configuration and Management Using
Commands in the NonStop CORBA Administration Guide.
Start the server program in one window by using the following command:
server -ORBprofile sample_stack
In the other window, start the client program:
client
After starting the client program, you should see the following output in the client window:
Top: 100
 Top: 200
 Top: 300
 Top: 400
 Top: 500
 Top: 600
 Top: 700
 Top: 800
 Top: 900
 Top: 1000
 Got STACK_OVERFLOW exception as expected.
 Pop: 1000
 Pop: 900
 Pop: 800
 Pop: 700
 Pop: 600
 Pop: 500
 Pop: 400
 Pop: 300
 Pop: 200
 Pop: 100
 Got STACK_UNDERFLOW exception as expected.
If you see the output as described above, you have successfully built and run the stack example on your
NonStop CORBA system.
You can now begin developing your own CORBA clients and servers on your NonStop CORBA system.
If you do not obtain the output as described above, either you have not correctly installed and configured
NonStop CORBA, or you did not build and run the example program correctly. You can start the
debugging process by using PATHCOM to view the status of your NonStop CORBA server-pool
processes.
Prev  Up  Next
Chapter 4. Considerations for Migrating
from Previous Releases 
Home
 Chapter 6. Running the Java Stack
Example










