Re: Application_OnStart not getting called
- Warren Young wrote:
>Apache::ASP does not know what applications are installed when the
> More accurately, the new event would be for calculating something when
> the web server first comes up.
web server first comes up. That is what the Loader() routine is for.
Loader() combined with this new event could calculate something just
once for when the global.asa is first compiled in the parent httpd,
but only when using Loader().
The problem fundamentally is getting Apache::ASP to know what applications
to compile at httpd server start time, and this is what Loader() does.
Loader for starters compiles the global.asa in the application being
referenced, and thus trigger the Global_OnStart routine being proposed.
> If I were still working on the code, this would be a fair annoyance. TheThe Global_OnStart event would actually run each time the global.asa is
> difference with new event is that it would run every time the parent web
> server comes up, regardless of whether the "application" is considered
> to be restarting. Restarting the web server to make new changes appear
> isn't a problem at all. I have to do it often already, since much of my
> code is in Perl modules, which don't get reloaded when they change.
recompiled in a child web server process, so just touching the global.asa
would trigger this event. Also for reloading perl code dynamically while
in development, you can try the StatINC config, and the Apache::Reload module.
> Global_OnStart is good.Thanks, this seems to be the consensus.
>Yes. Global_OnStart would just formalize this behavior. Again, unless
> I was thinking Global_OnStart would be in lieu of getting Loader
> working. Once you get Loader working, code at the end of global.asa has
> this "once on Apache startup" behavior, doesn't it?
one can propose a better way, I think Loader() is the best we can get
for compiling Apache::ASP applications in the parent httpd.
> The only gray area would be if you changed global.asa. It gets
> recompiled in this case. Would Global_OnStart be re-run? I suppose it
> could work either way.
>> It may be that necessarily Global_OnStart would have to occur beforeThanks for the feedback so far...
>> or $Session is set up ( effectively before Application_OnStart or
>> Session_OnStart )
>> effectively. Would this event still be useful if this is the case?
> Yes, that's still useful.
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: asp-unsubscribe@...
For additional commands, e-mail: asp-help@...