Re: load-on-startup initialization called twice

2000-08-21 Thread Jason von Nieda

I have noticed this same behaviour even with the servlet specified
only in one place. The init() method is always called on server
startup and then called again the first time the servlet is accessed.

- Original Message - 
From: "Christian Sell" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, August 21, 2000 12:32 PM
Subject: load-on-startup initialization called twice


> Hello,
> 
> I have load-on-startup specified both in default-web-site.xml for the
> web-app and in web.xml for a servlet within the web-app. Now the init()
> method of the servlet gets called twice - once when the app is loaded at
> server startup, and once when the app is first accessed from the browser.
> 
> Christian Sell
> 
> 





load-on-startup initialization called twice

2000-08-21 Thread Christian Sell

in addition to the previous mail, I observed that classes are also loaded
twice, i.e. on server startup AND AGAIN when the app is first accessed.
Makes me wonder what load-on-startup in web-site.xml is good for.

Christian Sell






load-on-startup initialization called twice

2000-08-21 Thread Christian Sell

Hello,

I have load-on-startup specified both in default-web-site.xml for the
web-app and in web.xml for a servlet within the web-app. Now the init()
method of the servlet gets called twice - once when the app is loaded at
server startup, and once when the app is first accessed from the browser.

Christian Sell