Thread and Application Domain

  • Thread starter Thread starter Pavan Kumar
  • Start date Start date
P

Pavan Kumar

HI,

I am developing an webapplication in asp.net using c#
..the requirement is like this.

on start of the application i have to create a application domain and
in the new
application domain i have to access database and store the value in
the Application variable of the webapplication which had created the
second application domain.

And more over the application in the second application domain should
be constantly accessing the data base say for every 10 min and should
update the data how to do this?
Any help is appreciated.
Regards
Pavan
 
a webpage already runs in a default app domain. Don't create app domains for
the sake of creating app domains because they consume resources. You may
simply open the data base in the application onstart event and store the
result set in a static variable or a cache object. It will be available to
the entire application
 
Back
Top