W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 2001

Re: servlets and method init()

From: Jan Zuurbier <j.zuurbier@planet.nl>
Date: Sat, 10 Feb 2001 14:43:54 +0100
Message-ID: <003501c09367$8333f9b0$cbda79c3@kukeleku>
To: "Greg Kopff" <gkopff@powersource.com.au>
Cc: <www-jigsaw@w3.org>
Thanks for your reaction.

No, there is no exception in method init(). I checked this.

I've now got a copy of Dustin Calayaw's book 'Inside Servlets'. It seems
that some webservers  create multiple instances of a servlet class. For each
instance method init() is called. I think jigsaw is one of these servers.

Regards,
J. Zuurbier.


----- Original Message -----
From: Greg Kopff <gkopff@powersource.com.au>
To: <J.Zuurbier@icim.fnt.hvu.nl>
Cc: <www-jigsaw@w3.org>
Sent: Wednesday, February 07, 2001 11:17 AM
Subject: Re: servlets and method init()


At 05:04 AM 2/6/01 -0500, you wrote:
>Method Servlet.init(ServletConfig config) is called after every request.
>Method Servlet.destroy() is only called when jigsaw closes down.

G'day.

This may be because your servlet is throwing an exception in its init
method, thus never properly initialising...

Regards,


 Greg Kopff
===================================================
gkopff@powersource.com.au      PowerSource Software
Technical Director    http://www.powersource.com.au
===================================================
  "We mock what we don't understand."
                               - Austin Millbarge
===================================================
Received on Saturday, 10 February 2001 08:36:42 GMT

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