Communicator e3000 MPE/iX Release 6.5 Express 2 (Software Release C.65.02) (30216-90322)

40 Chapter3
Technical Articles
Java Servlets for MPE/iX
Change the TZ variable for your local timezone in JSRV and JSRVOFF or in JSRVS and
JSRVSOFF,
shell/iX>cd /APACHE/SECURE
shell/iX>cat ./JSRVS
!job jsrvs,mgr.apache,secure;pri=cs
!setvar TZ 'PST8PDT'
...
!eoj
shell/iX>cd /APACHE/SECURE
shell/iX>cat JSRVSOFF
!job jsrvsoff,mgr.apache,secure;pri=cs
!setvar TZ 'PST8PDT'
...
!eoj
JServ should never be terminated using the POSIX shell's kill command. Terminating it
with kill prevents it from cleanly destroying all servlets.
Running the Servlet Engine
Startup
To start WebWise Secure Web Server and the servlet engine,
:stream jhttpds.secure.apache
:stream jsrvs.secure.apache
To start standard Apache and the servlet engine,
:stream jhttpd.pub.apache
:stream jsrv.pub.apache
Starting the servlet engine also starts up the Java Virtual Machine (JVM) since the servlet
engine itself is a servlet. Because the JVM is starting up, there will a short delay before
the engine is running.
Verifying Startup
Successful installation and startup of the servlet engine can be verified by
Looking at the content of the log files
Running the servlet status handler to view servlet status
Running the example servlets provided with the servlet package
Accessing the online JServ documentation
For the first startup after installation, it is best to start Apache or WebWise Secure Web
Server then check the conf/error_log and conf/mod_jserv.log files. This will verify that the
web server has started successfully and was able to load the mod_jserv module.
Mod_jserv.log is created at Apache startup, if it doesn't already exist. Next, start the
servlet engine. Jserv.log is created when the servlet engine is started.
shell/iX>cd /APACHE/SECURE/logs