W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 1999

RE: Servlet never gets destroyed

From: Bi, Xiaolian <Xiaolian_Bi@tri.sbc.com>
Date: Thu, 8 Apr 1999 17:21:49 -0400 (EDT)
Message-ID: <6C5FB3C08FCBD1118EE600805FEA9CC201E1A44C@trimail.tri.sbc.com>
To: "'Ever Olano'" <eolano@cybersource.com>, www-jigsaw@w3.org
I have exactly the same problem with my init(). I thought init() is only
called once when the servlet instance in created and loaded. My init() is
called every time too when the servlet is hit. I put some socket
initialization code in the init(), with the understanding that it will only
be called once. Since it's now called everytime, it really messes things up.
Could anyone post an answer to this question? Thanks in advance.
 
Xiaolian Bi

-----Original Message-----
From: Ever Olano [mailto:eolano@cybersource.com]
Sent: Thursday, April 08, 1999 12:36 PM
To: www-jigsaw@w3.org
Subject: Servlet never gets destroyed


Hello.  I'm new to both Jigsaw and servlets so pardon me if this query is
rather basic.  I put some trace statements inside the init() and destroy()
methods of my servlet.  To my surprise, only the init() gets called
everytime I invoke the servlet directly from the Address line in the
browser.  And I never see destroy() getting called.  So I guess my question
is, how do I explicitly unload a servlet from within JigAdmin?  If there is
no way inside JigAdmin, how can I unload it then?  Would it automatically
unload after some time?  Also, how come my servlet's init() always gets
called (which probably means, a new instance of my servlet gets created each
time)?  Maybe I do not fully understand a servlet's life-cycle.  Please
someone enlighten me on this.
 
Thanks in advance for any help.
Ever
Received on Friday, 9 April 1999 03:51:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT