| < Day Day Up > |
Java is the platform independent, interactive programming language of the Web. Oracle 11i harnesses the power and flexibility of the Java language and Java extensions to allow the entire application to be
JServ allows you to include Java servlets in the Oracle E-Business Suite application. It is a servlet engine that allows Apache to serve the nondatabase driven JSP to a requesting browser. Recall that the database driven JSP are delegated to the
mod_ose
module that is an Oracle provided module. JServ is an Apache standard module. Its functionality is available through the
mod_jserv
module plug-in.
While Apache is no longer offering new releases of the JServ product and is currently in maintenance mode (meaning that well
| < Day Day Up > |
| < Day Day Up > |
Before we venture too far in to the world of Java servlets, we probably need a small taste of the vocabulary that
A servlet is a Java-based server-side small application (or a single Java class) that runs inside of a Web server. It accepts client provided input, responds to the request based on that input, and dynamically generates the output based on those inputs. Servlets are
The servlet engine is the part of the application that executes the servlet, forwards the client's request for data to the
A servlet repository is a collection of servlets, either in a directory or in an archive. Often the archive is a zip file, more often it is a jar file (jar being a Java archive format similar to zip but available only to Java). The Web equivalent is roughly a directory.
A servlet zone is the location where the servlets live during their life cycle. It defines the security environment to where the servlet is restricted and allows for the logical separation between different groups of servlets. Also a collection of repositories that share a common context. It is the JServ version of the Web server's virtual host concept.
Every servlet must go through a certain execution path. This
In the initialization phase, the servlet engine loads the servlet's
.class
file into the JVM's memory space, converts the loaded file into a valid object, and initializes it. This step
Once the servlet is
Once the servlet has run and provided suitable output to the client, it cleans up after itself. In the destruction phase, resources that were allocated are returned to the system and the engine shuts down gracefully. The method associated with this portion of the life cycle would be the destroy () method.
Configuration and inclusion of JServ in your environment is accomplished by configuring the Jserv.conf file and the Jserv.properties file along with their includes in the Apache include file tree. Figure 5.1 shows an example of the files called by httpd.conf in an Oracle E-Business Suite configuration.
Figure 5.1:
Example of Files Called by httpd.conf
| < Day Day Up > |