CORBA 2.6 Getting Started Guide for Java
Building the Stack Sample
The Stack example contains a file named Makefile, which builds both the client and the server
applications. The Makefile performs the required steps to construct the executable components.
To build the sample:
Log on to the system and go to the directory javasamples/stack.1.
Verify that the etc/env.sh script has been sourced and that the environment variable
JAVA_HOME points to the installation of the NonStop Server for Java.
2.
Run the Makefile in the javasamples/stack directory.3.
The Makefile:
Uses the NonStop CORBA IDL compiler to process the interface contained in stack.idl file●
Builds the server executable by using the NonStop Server for Java compiler to compile its
components
●
Builds the client executable by using the NonStop Server for Java compiler to compile its
components
●
The NonStop CORBA IDL compiler nsdidl takes the stack.idl file as input and produces the
following 12 files:
Stack.java●
StackHelper.java●
StackHolder.java●
StackOperations.java●
StackPOA.java●
_StackStub.java●
StackPackage/STACK_OVERFLOW.java●
StackPackage/STACK_OVERFLOWHelper.java●
StackPackage/STACK_OVERFLOWHolder.java●
StackPackage/STACK_UNDERFLOW.java●
StackPackage/STACK_UNDERFLOWHelper.java●
StackPackage/STACK_UNDERFLOWHolder.java●
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