Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application recycle
Message
From
09/06/2011 08:45:51
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Application recycle
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01513778
Message ID:
01513778
Views:
88
When I update my data dictionary, which is done from the Web application, the next hit will know about it and will wait 2.5 seconds, just so to assure that all ongoing hits can be completed, before reinitializing the oApp global application object, which is visible to each multi threaded instance of each application pool. This includes a locking mechanism just so to assure that only one hit will initialize the oApp global application object.

But, when the application pool recycles the application, I have faced a situation that my oApp was no longer visible for a fraction of a second for another hit which had just started a fraction of a second before the other hit from the multi threaded worker process recycles. So, basically, to rectify the situation, on my Global.vb, which handles the code on recycle, I should add a 2.5 seconds timeout to do the same. So, when the Application_End event will fire, if this is a recycle, the timeout will allow enough time for other hits in progress to finish before releasing the oApp object. Then, the next hit will fall into the regular initialization as if I would have sent a new compile.

This seems to make sense. I am just wondering if I need to implement any locking mechanism at the Application_End event.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform