NonStop Server for Java 7.0 Programmer's Reference
JavaBeans
JavaBeans are reusable software components that can run in both a design environment (inside a
builder tool) and runtime environment.
The design environment is highly visual and requires that JavaBeans provide design information
to the programmer and to customize its behavior and appearance.
In the runtime environment, JavaBeans might be visible in the case of a Graphical User Interface
(GUI), or invisible in the case of a data feed control.
Because of the CLI nature of the NonStop operating system, NSJ7 supports only runtime execution
of invisible JavaBeans. The NSJ7 does not support design-time execution or runtime execution that
requires a GUI operation. In NSJ7, the Boolean expression java.beans.Beans
isGuiAvailable returns the value false.
For more information about JavaBeans, see Oracle JavaBeans document.
Debugging Java programs
This subsection discusses the debugger architecture and how to run the programs involved in
debugging Java applications, and also discusses the following topics:
• “Debugging overview” (page 47)
• “Transports” (page 47)
• “Java command-line options to run a debuggee” (page 47)
• “Starting the Java debugger (JDB) tool” (page 49)
• “Debugging JNI code” (page 49)
• “Debugging Java and JNI code” (page 50)
Debugging overview
NSJ7 supports Java Platform Debugger Architecture (JPDA) that provides debugging support for
the Java platform. For more information, see Oracle's Java Platform Debugger Architecture
Documentation.
NSJ7 ships a terminal oriented non-GUI debugging tool. This Java Debugger Tool (JDB) can be
used on a NonStop system to debug the Java applications running on the same NonStop system,
or on another NonStop system, or any other platform.
You can also use the non-GUI debugging JDB and other vendors' GUI debuggers running on
Microsoft Windows and other platforms to debug NSJ7 applications running on a NonStop system.
Transports
A JPDA transport is a form of inter-process communication used by a debugger application and
the debuggee. NSJ7 provides a socket transport that uses the standard TCP/IP sockets to
communicate between the debugger and debuggee.
By default, NSJ7 uses socket transport. NSJ7 does not support shared memory transport.
Java command-line options to run a debuggee
For remote debugging, you need to start the Java application to be debugged (debuggee) as a
server using the following command:
java -Xdebug -Xnoagent
-agentlib:jdwp=transport
-Xdebug
Enables debugging.
JavaBeans 47










