Global_OnStart sounds good to me. It's good to have a distinction between "this happens when everything is compiled" and "this happens when the application is re/started".
_______________________________________________________________ John Drago | Chief Architect of Software Development E-com Media Group, Inc. [www.e-commedia.com] office :: 303.790.7940 x25 email :: [EMAIL PROTECTED] E - b u s i n e s s w i t h D i m e n s i o n TM | -----Original Message----- | From: Josh Chamas [mailto:[EMAIL PROTECTED] | Sent: Tuesday, March 09, 2004 1:03 AM | To: Peter Galbavy | Cc: Warren Young; Apache-ASP List | Subject: Re: Application_OnStart not getting called | | Peter Galbavy wrote: | > Warren Young wrote: | > | >>If the current behavior is useful for others, then it might be nice to | >>have a new event that has the behavior I expected. No rush, this is | >>mostly a syntax issue. (Reasoning below.) The top priority is simply | >>to document the actual behavior of Application_OnStart. The current | >>docs are misleading. | > | > | > I see App*OnStart as very useful, if it is understood by the developer | of | > the application. If for any reason you share application state between | > mulitple front ends, then you only want certain things to happen exactly | > once. Each reboot or web server restart is not necessarily an | application | > restart :) | > | | This is a good point, and was the basis for the original implementation, | that the application starts when the first visitor registers a session. | This was the definition of the original Application_OnStart event | in the ASP model. | | Since there are others that find it useful as is ( thanks for speaking up | Peter ), | it seems that we really need to create something else to fill this gap. | | If I understand things correctly, the real need is to calculate something | once | per application, so the best would be to create the event | | Global_OnStart or Global_OnCompile ( Global_OnStart seems consistent ) | | which would be executed when the global.asa is compiled for the first | time. | If one wanted this to occur just once per server start, then running | Loader() | to get it compiled there would be the trick, otherwise it would be | executed | just once per httpd process. | | It may be that necessarily Global_OnStart would have to occur before | $Application | or $Session is set up ( effectively before Application_OnStart or | Session_OnStart ) | effectively. Would this event still be useful if this is the case? | Really, the | event would just be used to do things like calculate globals and the like, | so | it seems like this would be good enough. | | Any thoughts? | | Regards, | | Josh | | ________________________________________________________________________ | Josh Chamas, Founder | NodeWorks - http://www.nodeworks.com | Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com | http://www.chamas.com | Apache::ASP - http://www.apache-asp.org | | | | --------------------------------------------------------------------- | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]