-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

In the last mail Shad Stafford said:
|
|-----------------------------
|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.
|

I also have a question along similar lines. I have a servlet that, when
loaded, stokes up a static Hastable from an XML file. If I update the class file
then the servlet will "automatically" reload BUT the storage used by the
previous incarnation will become inaccessible, ie, will leak away. Now I
have written a "garbage collection" portal to my servlet which sets all
large static tables to null so that the servlet can be destroy()ed and so
the storage doesn't leak away - however, I simply can't be bothered to
nullify ALL static variables in my code as there's hundreds, so on each
reload, I lose a moderate amount of memory. I there a way around this ?

Adam (man of many questions)

PS WRT an earlier post. I also have trouble with some class files giving a
NoClassDefError when running as a servlet but not when run from the command
line. In the end I gave up!
-- 

      ***********************************************************
      *** PLEASE NOTE NEW EMAIL ADDRESS: [EMAIL PROTECTED] ***
      ***********************************************************
      Dr AC Marshall, Centre for Careers and Academic Practice,
      c/o Connect: The Internet Centre for Merseyside Businesses.
      The Foresight Centre, The University of Liverpool. L69 3GL.
      Fax: +44 51 794 8270            Phone: available by request

      Cheese of the Fortnight: Chaource Hugerot (yummy)


--
--------------------------------------------------------------
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]

Reply via email to