[quoted text, click to view] "sameertanna" <sameertanna@discussions.microsoft.com> wrote in message
news:4789A98F-3C91-4160-8322-156DF6C73BE8@microsoft.com...
> Hi,
>
> It will be great if you could throw some light on what you mean by
> "recycling", or point me to some resource which would have the information
> about it.
> I would like to initialize certain static objects. Would that be advisable
> using Global.asax?
1) There is no concept in ASP.NET that is equivalent to the J2EE concept of
initialization during deployment. I strongly recommend you reconsider that
aspect of your design, before you spend too much time duplicating that
functionality.
2) Each ASP.NET web application is hosted within an AppDomain. This is sort
of like a Unix process; just a bit lighter-weight. In various circumstances,
the application may be recycled - a new AppDomain will be created, and the
application will be activated within it, so that all new requests will go to
the new AppDomain. When all requests have finished in the old AppDomain, the
old AppDomain will be removed.
If you will give me an idea of what sorts of static objects you need to
initialize, I may be able to help you further.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer