CORBA 2.3.3 Getting Started Guide (NonStop CORBA 2.3.3+)

Chapter 6. Running the Java Stack Example
Prev
Next
Chapter 6. Running the Java Stack Example
Table of Contents
The Stack Example Overview
Building the Stack Sample
Configuring NonStop CORBA for the Stack Example
Running the Stack Example on OSS
Once you have installed and configured your NonStop CORBA software, you can test the operation of
your system by running a simple CORBA program.
The Stack example is a simple but fully functional CORBA program that has both a client and a server
implemented in C++ and Java. This section discusses the Java version of the example. For the C++
version see Running the C++ Stack Example. Because it contains both client and server applications, the
Stack example is a perfect test for your newly-installed NonStop CORBA system.
The Stack Example Overview
The Stack example can be found in the javasamples/stack subdirectory of your NonStop CORBA
installation. While the intent of this topic is to test your installation, the ReadMe.txt file in the Stack
directory details the workings of the program files.
The Stack example is a program that implements both a CORBA client and server in Java. It is a
complete and working program that demonstrates:
An object interface definition written in the Interface Definition Language (IDL)
Two POA servers that embody the implementation of the interface defined by the interface
definition
A client application which makes use of an instance of a stack object
In addition to these items, the Stack example can be ported to any platform running an implementation of
CORBA, thus showing the portability of CORBA applications. To demonstrate this portability, you can
build and run the client application on a NonStop DOM system (the sample is supplied with that software
package) and run it with the NonStop JORB application server that services the client requests.