java - Guice Singleton and Servlet -


i'm using guice , have question. there servlet that's singleton. there 1 instance of class in jvm or 1 instance of session scope? , concurrency access class?

there problem of concurrency access of servlet resource. servlet container handles well, spawn new thread @ eaach request , pass servlet reference , request processed.

and make servlet single threaded confirm single memory space use, container lightweight. same concept available in spring default every bean singleton.


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -