What is Servlet Container
2015-06-06 14:26
393 查看
What is Servlet Container
Normal Java application’s starting point is Main(public static void main(String args[])) method. When ever java application needs to start, main method of the application should be invoked. But in case of Servlet this is not true, Servlet doesn’t contain any main method. So who will initiate and run the method of Servlet. It’s Container who has the full control of Servlets. Tomcat is the example of Servlet container.How it works
When ever user request for any resource from Server Web server(Apache) will pass the request to Servlet Container(Tomcat) instead of directly to servlet. It is container who will create request and response Object and then pass it to Servlet eligible for asked resource and invoke service method of Servlet.Services Provided by Container
Communication SupportServlet Life cycle management
MultiThreading Support
JSP Support
相关文章推荐
- Gradle project sync failed. Please fix your project and try
- OnEraseBkGnd与OnPaint
- ubuntu的安装软件问题:E:Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavaila
- 深入分析AIDL原理
- UVA 253 Cube painting
- BZOJ 1660: [Usaco2006 Nov]Bad Hair Day 乱发节( 单调栈 )
- Gmail POP3设定
- 中国科学院院士张钹:大数据与人工智能研究的思考
- Filter和FilterChain具体的使用说明
- LeetCode Contains Duplicate III
- Container With Most Water
- POJ 1273 DRAINAGE DITCHES【最大流】
- Contains Duplicate II
- windows内核情景分析之—— KeRaiseIrql函数与KeLowerIrql()函数
- 严重: StandardServer.await: create[8005]:
- WorldWind源码剖析系列:地形访问器类TerrainAccessor
- WorldWind源码剖析系列:地形瓦片类TerrainTile和地形瓦片服务类TerrainTileService
- RAID
- pthread_cond_wait
- 端口状态说明 LISTENING、ESTABLISHED、TIME_WAIT及CLOSE_WAIT