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

Re: servlet calls init() method every time it runs?

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Fri, 16 Apr 1999 10:16:38 +0200
Message-ID: <3716F1E6.D942ADD0@sophia.inria.fr>
To: Yves Lafon <ylafon@w3.org>
CC: lacall <lacall@micron.com>, "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
Yves Lafon wrote:

> On Thu, 15 Apr 1999, lacall wrote:
>
> > I have a servlet that I have pared down to a simple form, and it has a
> > memory leak. In testing, I noticed that the init() method is called every
> > time the servlet is invoked, rather than only the first time. Is calling the
> > init() method every time a bug, or something I have configured wrong?
> > Thanks!
>
> A bug similar to the one you describe has been fixed recently (when your
> servlet is indexed as foo.bar.foobar), you can try the latest
> developpement version, available at
> http://jigsaw.w3.org/Devel/classes/19990414/

This happen also when the servlet is accessed with the .class in its URL,
then Jigsaw reindex it, and so, reinitialize it.
Jigsaw register the servlet without the .class in the URL.

Regards, Benoit.

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium   (W3C)
                    Architecture domain - Jigsaw Engineer

                http://www.w3.org/People/Mahe  - bmahe@w3.org
---------------------------------------------------------------------
Received on Friday, 16 April 1999 04:16:43 GMT

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