Daemon thread modifying ServletContext attribute
1 posts in topic
Flat View  Flat View

Posted By:   Abhay_Shukla
Posted On:   Thursday, April 21, 2005 01:06 PM

I have a web application and a servlet which starts up when the application is started. This servlet starts a daemon thread.
I need to update attributes of ServletContext with the thread object.
Is it possible to do so ? What could be the implications ?

Re: Daemon thread modifying ServletContext attribute

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, April 23, 2005 11:29 PM

the only "implication" I can think of would be that if you updated the same attribute from different threads (including from the servlet itself, etc.) they might overwrite each other's values.
About | Sitemap | Contact