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

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -