malaikuangren

What is the purpose or drive to build thing like (xxx),How can it achieve the original goal of design?

2013年8月13日

How many instances created in the WebContainer

摘要: When the Servlet container starts, it:readsweb.xml;finds the declared Servlets in the classpath; andloads and instantiates each Servletonly once.Roughly, like this:String urlPattern = parseWebXmlAndRetrieveServletUrlPattern();String servletClass = parseWebXmlAndRetrieveServletClass();HttpServlet ser 阅读全文

posted @ 2013-08-13 22:53 malaikuangren 阅读(229) 评论(0) 推荐(0) 编辑
Best Practice: Avoiding or minimizing synchronization in servlets

摘要: IntroductionMinimize the use of synchronization in servlets. Because servlets are multi-threaded, synchronization of the major code path can seriously and adversely affect performance.RecommendationServlets are multithreaded. Servlet-based applications have to recognize and handle this appropriately 阅读全文

posted @ 2013-08-13 22:49 malaikuangren 阅读(295) 评论(0) 推荐(0) 编辑
SingleThreadModel is deprecated in Servlet API version 2.4

摘要: Ensures that servlets handle only one request at a time. This interface has no methods.If a servlet implements this interface, you areguaranteedthat no two threads will execute concurrently in the servlet'sservicemethod. The servlet container can make this guarantee by synchronizing access to a 阅读全文

posted @ 2013-08-13 22:23 malaikuangren 阅读(236) 评论(0) 推荐(0) 编辑
What is the difference Apache (Http Server) and Tomcat (Servlet Container)

摘要: The Apache ProjectThe Apache Project is a collaborative software development effort.Its goal is to produce a robust, commercial-grade, free HTTP server.The project is run by volunteers the Apache Group communicating and planning through the Internet.Organizational support is provided by the Apache S 阅读全文

posted @ 2013-08-13 21:53 malaikuangren 阅读(420) 评论(0) 推荐(0) 编辑