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

html - Cut text on left side inside button while centering -

plugins - CodeIgniter support on netbeans 8.0 -

php - Selecting items from MySQL for a status update feed efficiently while accounting for possible spam -