NonStop Servlets for JSP System Administrator's Guide

Programming and Management Features
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide525644-001
4-3
Programming With NonStop Server for Java
This section provides only a brief summary of how to use the Servlet API 2.3. For
detailed information about the Servlet API 2.3, see the Java Servlet API Specification,
Version 2.3 at the following web site:
http://java.sun.com/products/servlet/
and other API documentation available from Sun Microsystems.
For information about programming with NonStop Server for Java, refer to the NonStop
Server for Java (NSJ) Programmer’s Guide.
You can create a new servlet or modify an existing servlet in two ways: use NonStop
Server for Java or use some other standard Java environment.
Programming With NonStop Server for Java
NonStop Server for Java is based on the Sun Microsystems, Inc. Java Developers Kit,
Version 2.0 and has been certified as fully Java-compliant by Sun Microsystems. It
includes the Java Virtual Machine (JVM) and all standard Java tools except
appletviewer. It also includes the following features:
SQL/MP for Java. This feature gives your servlet access to NonStop SQL/MP
databases.
SQL/MX for Java. This feature gives your servlet access to NonStop SQL/MX
databases.
Transaction protection using TMF.
Just-in-time (JIT) compiler. This feature improves the performance of a servlet by
translating Java byte codes to the native instruction set when a class is loaded,
rather than reinterpreting the byte codes for every use of a class.
NonStop Server for Java runs in the OSS environment on the NonStop system and
uses OSS features, such as the POSIX pthreads package to support multi-threading.
For detailed information about NonStop Server for Java, see NonStop Server for Java
(NSJ) Programmer’s Guide.
Programming With Other Java Environments
You also can develop servlets in some other Java environment and use them on the
NonStop system. Depending on the features your servlet uses, it might benefit from
minor modifications. For example:
The Abstract Windows Toolkit (AWT) is included in the NonStop Server for Java,
but classes that produce graphical output return an exception.
NonStop Server for Java supports runtime execution of invisible Java beans but
does not support runtime execution that requires a graphical user interface (GUI)
operation.