Java Servlet

今天看到Jenkins使用了Winstone servlet container,就稍微了解一下什么是java servlet。


首先看看Jenkins是怎么提到servlet的:

安装Jenkins可以直接运行war,但是:

Alternatively, if you have a servlet container that supports Servlet 2.4/JSP 2.0, such as Glassfish v2, Tomcat 5 (or any later versions), then you can run them as services.


servlet

http://www.oracle.com/technetwork/java/javaee/servlet/index.html

Servlets are the Java platform technology of choice for extending and enhancing Web servers. Servlets provide a component-based, platform-independent method for building Web-based applications,

Today servlets are a popular choice for building interactive Web applications. Third-party servlet containers are available for Apache Web Server, Microsoft IIS, and others. Servlet containers are usually a component of Web and application servers, such as BEA WebLogic Application Server, IBM WebSphere, Sun Java System Web Server, Sun Java System Application Server, and others.


servlet container

http://www.roseindia.net/servlets/WhatIsAContainer.shtml

A servlet container is nothing but a compiled, executable program. The main function of the container is to load,initialize and execute servlets. The servlet container is the official Reference Implementation for theJava Servlet and JavaServer Pages technologies.

其实container就是提供一些常用的web application的功能,程序代码可以直接使用。

例如Jenkins可以将build的结果用邮件通知别人,就是直接使用container提供的发送邮件的功能。


这里有一个很好的链接,用以介绍常用的servlet container:

https://wiki.jenkins-ci.org/display/JENKINS/Containers

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值