-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Is it possible to manually cause a servlet to be unloaded and then reloaded
by jserv? I understand that servlets are reloaded automatically when the
underlying class file changes, but I would like to be able to trigger a
similar event manually.
The motivation is this: many of my servlets read configuration files and
build database connection pools and the like on startup. I would like to
tell a servlet to unload and then reload itself so that it would drop all
its old configuration and get a fresh start. I could write code in each of
my servlets to respond to some message to re-read configuration and stuff,
but it seems like the servlet engine could do it for me in a generic
fashion. I don't want to restart the entire jserv instance just to get one
servlet to reload (which would cause other servlets to lose in-memory
session data and to incur startup overhead). If memory serves, JWS had this
functionality accessible from an applet or something. Does anyone know if
jserv supports similar functionality?
As an adjunct to this, it would be nice to be able to get a status report
from jserv showing what servlets are currently loaded and how many instances
of SingleThreadModel servlets are loaded. Is this available now? The /jserv/
handler doesn't seem to provide this much information.
Thanks
-Shad
*****
Shad Stafford
Web Software Engineer
Metro One Telecommunications, Inc.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]