AD

java servlet container

Used or intend to use the java server has a resin, tomcat, jetty.
1.tomcat is a standard j2ee implementation, the user may also be more. Tomcat, but more and more, updated more and more slowly, recently google has also abandoned the use tomcat instead jetty.
I use tomcat relatively small, so not many know tomcat.

2.resin is the most servers, and the performance is better, mainly that he can compile the native code is not written in pure java. Distributed also more convenient, while the professional version requires licence, free way is to apply by sending email in the past. time seems to be a month bar.
resin is divided into two cluster, one is the app-tier, the other is the web-tier, if there is no front-end servers, such as apache, nginx, etc., use the app-tier.
The <cluster> defined <server address='127.0.0.1' port='6800'/>, in the <server> can have multiple virtual hosts under <host root-directory='.'>
Under the <host> deploy multiple <web-app root-directory='webapps/Root' />

3.jetty is intended to use the server, but also in the understanding of, jetty is also a standard j2ee implementation, pure java writing, at least the amount of code, performance is also OK. His configured a bit special, XML dependency injection to set the various classes.
(1). Server, http server, the main class, was among the first to initialize the class, he includes Connector, Handler.
Server itself is a Handler, ThreadPool.Connector using the ThreadPool methods to run the task, and these tasks call the Handler itself is the method implemented.
(2). Connector is the http protocol connectors, set the host, port can receive the appropriate http requests. A Server can have multiple Connector
(3). Handler is the actual process the request class.
(4). ThreadPool is a thread pool, you can reconfigure can also use the Server default.
(5). Security Realm, authorization and authentication

To be continued ...
标签: lt, jetty, server default, gt 3, authentication, google, code performance, root directory, webapps, thread pool, request class, resin, java server, host port, professional version, server address, java servlet container, host root, cluster one, virtual hosts
分类: Java
时间: 2010-02-11

相关文章

  1. Java Servlet and the Web-depth understanding of the relationship between container

    From http://developer.51cto.com 2010-05-27 15:05 Jacob.G 51CTO Java Servlet and the Web container to understan ...
  2. Java Servlet API documentation (a)

    Introduction This is a report on version 2.1 of the Java Servlet API documentation, as a supplement of this do ...
  3. [How Tomcat Works] Chapter 2, a simple Servlet Container

    Translator jarfield Blog http://jarfield.javaeye.com Overview javax.servlet.Servlet Interface First applicatio ...
  4. Java Servlet Listener using regular monitoring to achieve

    Two steps: (1) two methods to achieve javax.servlet.ServletContextListener interface: contextInitialized () an ...
  5. Java Servlet API documentation in Chinese

    This document describes the latest version of Java Servlet API 2.1. Therefore, this book is for developers and ...
  6. Java Servlet API documentation in Chinese (1)

    This document describes the Java Servlet API in the latest version of the 2.1 version. Therefore, this book fo ...
  7. Java Servlet Overview

    Java Servlet Overview
  8. Flex + Java Servlet file upload instances of

    Resources are from the Internet. This example will demonstrate the use of Flex and java servlet upload files. ...
  9. Java Servlet API documentation for the Second Chinese

    1, HttpServletRequest Interface Definition of \ public interface HttpServletRequest extends ServletRequest; Se ...
  10. Java Servlet Technology

    Servlet Introduction 1. What is Servlet? Servlet is to use the Java Servlet Application Programming Interface ...
  11. Flex + Java Servlet file upload instances

    Resources are from the Internet. The examples will demonstrate use of Flex and java servlet upload files. Adva ...
  12. Flex + Java Servlet File Upload Example

    Resources are from the Internet. This example will demonstrate use of Flex and java servlet upload files. Adva ...
  13. [Reserved] Ext Ajax: how to call Ext.Ajax.request method for processing and use of Java Servlet

    The code used to submit data Ext.Ajax.request as follows (this code in a Js file, in order to avoid Chinese ga ...
  14. java servlet 几种页面跳转的方法

    java servlet 几种页面跳转的方法,需要的朋友可以参考一下 Servlet: 当然,在servlet中,一般跳转都发生在doGet, doPost等方法里面. 1) redirect 方式 response.s ...
  15. java servlet获得客户端相关信息的简单代码

    这篇文章主要介绍了java servlet获得客户端相关信息的简单代码,有需要的朋友可以参考一下 java web很常用的功能代码,可以配合实现IP白名单控制,直接贴代码: import javax.servlet.ht ...
  16. 深入Ajax代理的Java Servlet的实现详解

    本篇文章是对Ajax代理的Java Servlet的实现方法进行了详细的分析介绍,需要的朋友参考下 代码如下所示: import java.io.IOException; import java.io.InputStre ...
  17. Java Servlet及Cookie的使用

    本文介绍了Java Servlet编程所需的软件及环境配置.只要你有一台安装Windows 95/98了的PC机,便可以按照本文的步骤开发Servlet程序了.本文同时给出了通过Java Servlet向用户的硬盘写入和 ...
  18. JAVA Servlet 动态加载配置文件.properties

    JAVA Servlet 可以定义.properties文件对程序进行定义参数,一般为加载Servlet时读取,修改.properties后需要在tomcat里重新加载一 次Servlet以重新读取参数.但有些程序必须一 ...
  19. Java Servlet Web container and the relationship between

    From computer software development into the Internet age, they begin to relate to communication problems. In t ...