-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Shad:
If you are on a Unix box, you can simply touch the .class file that you already
have designated in the repository. It will then reload it. I know that this is
not "fully manual" the way that you described, but anything that changes the
modification time of the class file will cause it to reload. You can even write
an admin interface to do this for you if you wish.
As for the second question, I cannot answer - I know that there is work on an
administrative applet for Jserv. Check http://java.apache.org for the project
names.
-MA
Shad Stafford wrote:
> -----------------------------
> 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]
--
~-~-~-~-~-~-~-~-~-~-~-~-~-~-WEBEASY-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Michael Amster [EMAIL PROTECTED]
4676 Admiralty Way, Suite 300 Tel: 310.576.0770
Marina Del Rey, CA 90292 Fax: 310.576.2011
--
--------------------------------------------------------------
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]