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
Post a Comment