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

Chapter 3 37
Technical Articles
Java Servlets for MPE/iX
"root" and its corresponding properties file called "root.properties". A properties file
contains a list of servlet repositories for a specific zone. This is the location of the servlet
class files for that zone. Any other settings that are specific to a zone must also be in the
properties file. It also contains aliases and initialization arguments for the servlets in that
zone.
Properties files use the same grammar as the jserv.properties file and are usually named
using the zonename.properties syntax.
This file is read once by the servlet engine at startup.
Definitions
Servlet Repository - A servlet repository is a collection of servlets and may be either a
directory or archive, such as a zip or jar file.
Servlet Zone - The servlet engine partitions its execution space into secured, separated
zones. A servlet zone represents a collection of servlets that represent the same security
restrictions. They are similar to a web server's virtual host.
Local Mode - This is when the web server and the servlet engine reside on the same
machine. This is the fastest and most common mode of operation because the client (web
server) communicates with the servlet engine over a local loopback interface (127.0.0.1)
instead of over the network.
Remote Mode - This is when the web server and the servlet engine reside on different
machines. This mode might be desirable when load balancing.
Installation
Java Servlets is installed by following the patch installation instructions. Successful
installation depends on properly installing and configuring the Apache Web Server, the
Apache JServ module (mod_jserv), the Jserv servlet engine and the JVM. To ensure
success, the following should be verified before beginning installation of Java Servlets:
1. The desired version of Java is on your system and can compile and run a Java program
2. Apache 1.3.9 for MPE/iX or WebWise Secure Web Server for MPE/iX runs successfully
You can check your version of the JVM by invoking the command,
:java -version
or
shell/iX>/usr/local/java/latest/bin/java -version
A simple program like HelloWorld can be used to verify if Java is set up correctly. The
program below should be created in HelloWorld.java:
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");