运维开发网

Jenkins之java servlet

运维开发网 https://www.qedev.com 2020-03-24 07:46 出处:网络 作者:运维开发网整理
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 Glassf

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

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号