TOMCAT8 new Features

Source: Internet
Author: User
Tags foreach aliases tomcat apache tomcat
Apache Tomcat8 Essential KnowledgeAuthor: Chszs, reprint Apache Tomcat8 Essential KnowledgeAuthor: Chszs, reprint need to indicate. Blog home: Http://blog.csdn.net/chszs

First, Apache Tomcat 8 IntroductionApache Tomcat version 8rc1 was released in the previous days. It has been developed for more than 2 years, introducing a lot of new features that are not recommended for use in the product because it is still an alpha version. But we should understand what new features it has so that it can be used in our development projects after the stable version comes out.

Apache Tomcat 8 supports the Java EE 7 specification, including Java Servlet 3.1, JSP 2.3, Java Unified Expression Language El 3.0, and so on.

We can take a look at the Java EE specifications supported by Tomcat in the last few versions.
------------------------
Tomcat 6:servlet 2.5, JSP 2.1, EL 2.1
Tomcat7:servlet 3.0, JSP 2.2, EL 2.2
Tomcat8:servlet 3.1, JSP 2.3, EL 3.0
------------------------

In addition, Tomcat 8 supports new specifications such as Java WebSocket 1.0.


Ii. Introduction of Servlet 3.1The biggest improvement for Servlet 3.1 is the non-blocking I/O communication. This allows for a dramatic improvement in performance, and the data can be managed asynchronously through the Readlistener and Writelistener interfaces.
The second major improvement to Servlet 3.1 is the upgrade of the HTTP protocol. It allows the client to specify the protocol used by both parties to communicate. For example, the server and client were originally using HTTP communication protocol to upgrade to WebSockets communication.

Iii. introduction of JSP 2.3JSP 2.3 Compared to the 2.2 version, does not add any new features or new features, mainly maintenance and cleanup.

Iv. Introduction of EL 3.0EL 3.0 has been greatly improved and enhanced compared to previous versions. Mainly include:
1) El can run in "standalone Mode", which runs outside of Servlets and JSP pages.
In short, this enhancement can be invoked directly within the servlet container or outside the container using the Elprocessor class.
2) El expressions also support lambda expressions, which are similar to Java 8, which simplify the code.
Expressions include: parameter set, lambda operator, function body.
3) Set operators allow you to construct collection types such as set, list, and map.
4) The Java El Streaming API contains filters such as foreach, reduce, filter, map, and so on.
Here you can get a list of collections or lists, call a couple of strings, or run an external filter or aggregate function on the list. For example, you can sum the strings.
5) by importing the El Context, developers have direct access to the static fields and methods of any class.

v. Introduction of WebSocket 1.0TOMCAT 8 formally supports the API for the WebSocket 1.0 standard. Although Tomcat 7 also provides support, it is only partially supported because the standard has not been formally enacted in the age of Tomcat 7. Currently, most Web sites also run HTTP traffic in half-duplex mode, which means that communication can occur at both ends, but at the same point in time, there can be only 1 directions of communication. It's kind of like a walkie talkie.
The WebSockets protocol is a full-duplex protocol, which means that at the same point in time, communication is transmitted in both directions. WebSockets is also one of HTML5 's specifications.

Vi. Internal improvements to Tomcat 8The biggest change in Tomcat 8 is resource resource. The resources of Tomcat 8 are refactored to better support external resources. The original aliases aliases, Virtualloader, virtualdircontext, jar resources, and external warehouses are now configured in a single, consistent way. The implementation of this new resource can also be used in the main war package and as a basis for many other Web applications.


In addition, there is support for the Spdy agreement, there are some controversies, because Spdy is not perfect.


Finally, the Tomcat 8 also has some security enhancements, primarily SSL encryption, which provides additional diagnostic information.
Need to indicate. Blog home: Http://blog.csdn.net/chszs

First, Apache Tomcat 8 IntroductionApache Tomcat version 8rc1 was released in the previous days. It has been developed for more than 2 years, introducing a lot of new features that are not recommended for use in the product because it is still an alpha version. But we should understand what new features it has so that it can be used in our development projects after the stable version comes out.

Apache Tomcat 8 supports the Java EE 7 specification, including Java Servlet 3.1, JSP 2.3, Java Unified Expression Language El 3.0, and so on.

We can take a look at the Java EE specifications supported by Tomcat in the last few versions.
------------------------
Tomcat 6:servlet 2.5, JSP 2.1, EL 2.1
Tomcat7:servlet 3.0, JSP 2.2, EL 2.2
Tomcat8:servlet 3.1, JSP 2.3, EL 3.0
------------------------

In addition, Tomcat 8 supports new specifications such as Java WebSocket 1.0.


Ii. Introduction of Servlet 3.1The biggest improvement for Servlet 3.1 is the non-blocking I/O communication. This allows for a dramatic improvement in performance, and the data can be managed asynchronously through the Readlistener and Writelistener interfaces.
The second major improvement to Servlet 3.1 is the upgrade of the HTTP protocol. It allows the client to specify the protocol used by both parties to communicate. For example, the server and client were originally using HTTP communication protocol to upgrade to WebSockets communication.

Iii. introduction of JSP 2.3JSP 2.3 Compared to the 2.2 version, does not add any new features or new features, mainly maintenance and cleanup.

Iv. Introduction of EL 3.0EL 3.0 has been greatly improved and enhanced compared to previous versions. Mainly include:
1) El can run in "standalone Mode", which runs outside of Servlets and JSP pages.
In short, this enhancement can be invoked directly within the servlet container or outside the container using the Elprocessor class.
2) El expressions also support lambda expressions, which are similar to Java 8, which simplify the code.
Expressions include: parameter set, lambda operator, function body.
3) Set operators allow you to construct collection types such as set, list, and map.
4) The Java El Streaming API contains filters such as foreach, reduce, filter, map, and so on.
Here you can get a list of collections or lists, call a couple of strings, or run an external filter or aggregate function on the list. For example, you can sum the strings.
5) by importing the El Context, developers have direct access to the static fields and methods of any class.

v. Introduction of WebSocket 1.0TOMCAT 8 formally supports the API for the WebSocket 1.0 standard. Although Tomcat 7 also provides support, it is only partially supported because the standard has not been formally enacted in the age of Tomcat 7. Currently, most Web sites also run HTTP traffic in half-duplex mode, which means that communication can occur at both ends, but at the same point in time, there can be only 1 directions of communication. It's kind of like a walkie talkie.
The WebSockets protocol is a full-duplex protocol, which means that at the same point in time, communication is transmitted in both directions. WebSockets is also one of HTML5 's specifications.

Vi. Internal improvements to Tomcat 8The biggest change in Tomcat 8 is resource resource. The resources of Tomcat 8 are refactored to better support external resources. The original aliases aliases, Virtualloader, virtualdircontext, jar resources, and external warehouses are now configured in a single, consistent way. The implementation of this new resource can also be used in the main war package and as a basis for many other Web applications.


In addition, there is support for the Spdy agreement, there are some controversies, because Spdy is not perfect.


Finally, the Tomcat 8 also has some security enhancements, primarily SSL encryption, which provides additional diagnostic information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.