HP3000-L Archives

October 2000, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Tue, 10 Oct 2000 00:29:30 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
The Apache JServ zone.properties is somewhat similar to the
servlet.properties file of servletrunner, but it has a little
more flexibility. You *can* use it to "declare" servlets and
optional initArgs, but it is also possible to only specify a
directory path as "repository" and then access servlets via
their (case sensitive) class names. The servlet engine is also
able to do automatic reloading of config files or class file
of the servlet are changed/updated.

For example, assume you have declared a repository to include
the /APACHE/PUB/servlets directory. If you place a servlet
file MyTest.class in there, you can access it via the web URL
http://your3k/servlet/MyTest without any specific properties
settings (assuming jserv.conf tells Apache to pick URL prefix
/servlet and pass requests to JServ and your zone).

Alternatively, you can add lines to zone.properties like below
  servlet.foobar.code=MyTest
  servlet.foobar.initArgs=whatever=something
and then access the servlet via http://your3k/servlet/foobar.
The servlet could also get "whatever" via getInitParameter().

The second approach is called "aliased servlets", IIRC.

Hope this sheds some light.

Lars.

ATOM RSS1 RSS2