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

Re: Servlet never gets destroyed

From: Ever Olano <eolano@cybersource.com>
Date: Thu, 8 Apr 1999 17:55:12 -0400 (EDT)
Message-ID: <0a9801be820a$41b000d0$1a07020a@dcc.cybersource.com>
To: "Bi, Xiaolian" <Xiaolian_Bi@tri.sbc.com>, <www-jigsaw@w3.org>
Hello Xiaolian,

I think I've figured this out.  When I use the class name with the extension
(i.e. HelloWorld.class), jigsaw creates a new instance.  But when I use the
name registered in jigsaw (which by default is the class name w/out the
extension), it doesn't.  So, I guess, we just need to use the registered
name and we're fine.

Ever

-----Original Message-----
From: Bi, Xiaolian <Xiaolian_Bi@tri.sbc.com>
To: 'Ever Olano' <eolano@cybersource.com>; www-jigsaw@w3.org
<www-jigsaw@w3.org>
Date: Thursday, April 08, 1999 2:18 PM
Subject: RE: Servlet never gets destroyed


>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:52:03 GMT

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