NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.1+)

If accessed from NonStop Java 2.1, an unsupported feature throws an
UnsupportedClassException.
For more information on JDK 1.2.2, see the Sun Microsystems documentation.
Java Naming and Directory Interface
(JNDI) Highlights
The Java Naming and Directory Interface (JNDI) provides naming and directory functionality
to Java programs. It is independent of any specific directory service implementation, so it
allows a variety of directories to be accessed in a common way.
The JNDI architecture consists of an Application Programming Interface (API) and a Service
Provider Interface (SPI). Java programs use the JNDI API to access a variety of naming and
directory services. The JNDI SPI enables a variety of naming and directory services to be
plugged in transparently, allowing Java programs that use the JNDI API to access their services.
JNDI is a Java Standard Extension.
NonStop Java implements JNDI by means of CORBA naming (COS Naming). Compaq
NonStop EJB provides a COS Naming Service for JNDI.
For more information about the JNDI, see the Sun Microsystems JNDI document
(http://java.sun.com/products/jndi/javadoc/overview-summary.html).
Execution Scenarios
NonStop Java can be executed as any of the following:
Stand-alone process
Web-based servlet
Invoked from C or C++ code
Invoked from the Java RMI API
Stand-Alone Execution
As in other Java environments, you can run a NonStop Java program from the command line.
The NonStop Java program must contain a method with this signature:
public static void main(String [] args);