Maximizing Legacy Servlet Performance
94 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
The legacy subdirectory contains the following directories:
•
beans.10 -- Contains example Java Bean files for JSP 1.x.
•
jsp.10 -- Contains subdirectories that each contain an example for JSP 1.x.
•
jsp.10/hangman -- Contains a JSP application that was an SSJS application in
iPlanet Web Server 4.x. For more information about converting SSJS
applications to JSPs, see Appendix B, “Converting SSJS Applications.”
•
make -- Contains example makefiles for servlets. These are common makefiles
containing rules that are included by all other makefiles.
•
servlets -- Contains subdirectories that each contain Java source files and
makefiles for servlet examples.
•
tools -- Contains the SDKTools.jar file and other utility files.
Maximizing Legacy Servlet Performance
Consider the following guidelines for improving servlet performance:
• If you edit your
obj.conf file manually, make sure that the servlet NameTrans
(
NameTrans fn="NSServletNameTrans" name="servlet") is always the first
NameTrans directive.
This directive uses a highly optimized URI cache for loaded servlets and
returns
REQ_PROCEED if the match is found, thus eliminating the need of other
NameTrans directives to be executed.
• In the default virtual server, servlets defined individually (via the Configure
Servlet Attributes page or
rules.properties and servlets.properties) are
slightly faster than dynamically loaded servlets (in servlet directories).
Komentáře k této Příručce