NonStop Servlets for JSP System Administrator's Guide

Programming and Management Features
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
4-18
Retry and Error Recovery
Example 4-14 shows how to set these values before invoking the nsjsp_manager
utility in a non-interactive manner.
Retry and Error Recovery
The following nsjsp_manager operations have built-in automatic retry and recovery
mechanism:
start
stop
install
remove
reload
Upon receiving any errors from one of these operations, the nsjsp_manager utility
resends the same operations three times to the NSJSP container processes that did
not complete the requested operation or replied with errors.
If, after three retry attempts, the nsjsp_manager utility gets an error on the requested
operation, then it does not retry and prompts you as to whether you wish to stop the
NSJSP container processes. It is recommended that you stop those failing processes
when prompted by the nsjsp_manager utility because those NSJSP container
processes may be in an inconsistent state and, if so, the web requests could potentially
get unexpected results.
Example 4-14. Setting nsjsp_manager Environment Variables
osh> export NSJSP_MGR_USER="tomcat"
osh> export NSJSP_MGR_PASSWD="tomcat"
osh> export NSJSP_MGR_SERVER_ADDR="localhost"
osh> export NSJSP_MGR_PATHMON="\$ZWEB"
osh> export NSJSP_MGR_OSSNAME="/usr/tandem/webserver/bin/servlet.ssc"
osh> export NSJSP_MGR_SVRCLASS="SERVLET"
osh> export NSJSP_MGR_SVRCLASS="/usr/tandem/webserver/mySession.log"
osh> /usr/tandem/webserver/servlet_jsp/bin/nsjsp_manager list
[$Z4LB]-> OK - Listed applications for virtual host localhost:
/servlet_jsp:running
/servlet_jsp/tomcat-docs:stopped
/manager:running
/servlet_jsp/examples:running
/servlet_jsp/webdav:running
[$Z4LC] -> OK - Listed applications for virtual host localhost:
/servlet_jsp:running
/servlet_jsp/tomcat-docs:stopped
/manager:running
/servlet_jsp/examples:running
/servlet_jsp/webdav:running