Static function in Java web application -


i have static function in class called servlet. suppose, if 100 requests come @ time, function available requests?

all requests processed same vm, in same process, different threads. yes, static members available requests.

be aware though if change static data multiple threads, synchronize on data thread safety. or use threadlocal objects, these distinct every thread.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -