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

itself and waits for a request. A CLASSPATH environment variable is configured with the
locations of directories, zip files, or JAR files from which servlet classes are to be loaded.
HyperText Markup Language (HTML) invokes an instance of an HttpServlet class in
much the same way as it invokes a CGI program. Instead of referring to a program in a
cgi-bin directory, HTML refers to SSC-name/Servlet-name.
Invocation From C or C++
The Java Native Interface (JNI) allows C and C++ programs to invoke a Java Virtual Machine
(JVM), create Java objects, and invoke Java methods. NonStop Java fully supports this usage.
The JNI specifies an invocation API that native RISC programs written in C or C++ can use to
invoke Java methods. The invocation API includes facilities for starting a JVM, constructing
Java objects, and invoking Java methods. This API is used by programs that embed JVMs, such
as Internet browsers and debuggers. The ServletServerClass (SSC) uses the invocation
API for iTP Secure WebServer integration.
The JNI also includes a set of APIs that native RISC programs use to interact with the JVM (for
example, APIs to convert Java Strings to C strings). NonStop Java supports these APIs.
Remote Method Invocation (RMI)
The Sun Microsystems Remote Method Invocation (RMI) API supports remote method
invocation between Java peers or between Java clients and Java servers. NonStop Java fully
supports this usage for RMI clients and servers.
RMI enables you to create distributed Java-to-Java programs, where the methods of remote Java
objects can be invoked from other Java Virtual Machines, possibly on different hosts. A Java
program can call a remote object after it obtains a reference to the remote object, either by
finding the remote object in the bootstrap-naming service that RMI provides or by receiving the
reference as an argument or returned value. A client can call a remote object in a server, and
that server can also be a client of other remote objects.
The Standard Edition of JDK 1.2.2 includes the Sun Microsystems RMI API for homogeneous
distributed objects. Use this package for Remote Method Iinvocation when you are certain that
all distributed objects are defined in Java.
RMI requires that remote objects specify a SecurityManager class to implement a security
policy for remote method invocation. Sun Microsystems provides a default
RMISecurityManager.
RMI clients, servers, tools, and naming services are supported in the standard manner.
Contents | Index | Glossary | Prev | Next