一个 servlet容器自己处理并发访问的问题
解决方案 »
- 如何通过配置log4j.xml 按照文件大小生产文件
- 请哪位大哥教教Liferay Portal技术怎么入门?
- struts2的404错误
- 怎么在hibernate 中执行一个update的sql语句?
- 数据乱码问提,请高手帮忙!!!!!!!!!!急啊!!!!!!!!!!!!!!!!!!!!!!!
- 问题!我在用iReport时出现编译错误
- tomcat4.0配置servlet的问题~
- weblogic下怎样部署ejb,谢谢
- 有没有哪位兄弟做过windows字体的,给点思路啊
- java中怎么调动.dll????????????
- java高人请进~!
- 关于cascade="all-delete-orphan"
SERVLET 会被编译成JSP在客户端运行!
所以 有几个请求就有几个INSTANCE!
看看servlet specification不就完了。
lz很懒
container must use only one instance per servlet declaration. However, for a servlet
implementing the SingleThreadModel interface, the servlet container may instantiate multiple instances to handle a heavy request load and serialize requests
to a particular instance.
In the case where a servlet was deployed as part of an application ed in
the deployment descriptor as distributable, a container may have only one instance
per servlet declaration per virtual machine (VM). However, if the servlet in a distributable
application implements the SingleThreadModel interface, the container
may instantiate multiple instances of that servlet in each VM of the container.