NonStop Server for Java 5.1 Programmer's Reference

the named serverclass. For example from the OSS prompt, start a PATHMON (process monitor)
named $foo and set the ARGLIST at the PATHCOM prompt:
$gtacl -p pathcom \$foo
PATHCOM .....
=set serverclass ARGLIST -Xabend,MyClass,3000
This is similar to entering java -Xabend MyClass 3000 at an OSS shell prompt. The
-Xabend argument to the java executable causes Java to abend instead of exiting with a
non-zero exit code. Pathway servers must abend rather than merely stop when a fatal error occurs,
so that the PATHMON process can restart them. MyClass is the name of the Java class to be
invoked, and "3000" is an argument to the MyClass class.
Note that, in the OSS environment, the dollar sign ($) has special meaning; therefore, the process
name $foo must be preceded by a backslash (\), the escape character.
PROCESSTYPE
Set this attribute to OSS.
ENV
Environment variables are set using the ENV serverclass attribute. For Java use, you must set the
CLASSPATH environment variable so that the Java runtime can find your classes. If you are
using NonStop Server for Java 5.1 versions earlier than the T2766H51^ABO SPR, installed in a
non-standard location, you must set the JREHOME environment variable to the /jre directory.
For a JREHOME example, the set server command shown entered at the PATHCOM prompt
follows. (However, you would typically type these commands in a configuration file to be used
with PATHCOM.)
$gtacl -p pathcom \$foo
PATHCOM .....
=SET SERVER ENV JREHOME /home/lee/jdk151/java/jre
Note: If you are using NonStop Server for Java 5.1 version T2766H51^ABO or later,
you need not set the JREHOME variable. The standard location for all NonStop
Server for Java 5.1 installations is /usr/tandem.
PROGRAM
Set the PROGRAM attribute to the java executable. The java executable is located by default
in /usr/tandem/java/bin/. For example from the OSS prompt, start a PATHMON
(process monitor) named $foo and set the PROGRAM attribute at the PATHCOM prompt:
$gtacl -p pathcom \$foo
PATHCOM .....
=set server PROGRAM /usr/tandem/java/bin/java
Title Page | Contents | Index | Glossary | Prev | Next