CORBA 2.6 Getting Started Guide for Java
Running the Stack Example
You have now built the Stack client and server applications and are ready to test your JORB Lite system:
Open a second command-prompt window. In this window, navigate to the Stack example directory.1.
In the first command-prompt window, execute the Stack server program by running the
runserver.bat file. (Note that you can also run the runserverpoa.bat file to run the POA
implementation.)
2.
From the second command-prompt window, execute the Stack client by running the
runclient.bat file.
If you you receive the following error, check that you have entered the values into the
lib\lite.dbm file and that you have set up your environment correctly:
ERROR: Cannot find configuration database
Please verify that -ORBlitedbm <db> was specified in the argument to
3.
The client should run and produce the following output:
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.
Calling NonStop CORBA Applications from JORB
Lite
The Java language allows you to "Write once, Run anywhere," which means that you can generate JORB
Lite clients and servers and move their generated .class bytecode files to the NonStop Kernel for