Tomcat,jboss and JBoss Web

Source: Internet
Author: User
Tags openssl jboss jboss application server apache tomcat

Recent exposure to application server JBoss, in addition to the JBoss Web and Tomcat as a Web server, then consult the data to compare the three, for your reference.

First, Tomcat

The Tomcat server is a free open source Web application server. Support for the latest servlet and JSP specifications. Because of the advanced Tomcat technology, stable performance, and free, so deeply loved by Java enthusiasts and have been recognized by some software developers, become the most popular Web application server.
Tomcat, like IIS, Apache and other Web servers, has the ability to handle HTML pages, but Tomcat does not handle static HTML as well as the Apache server. It is also a servlet and JSP container, and the standalone servlet container is the default mode for Tomcat, and Tomcat-based development is primarily a JSP and servlet development. We can integrate Tomcat and Apache into one piece, allowing Apache to handle static HTML while Tomcat handles JSPs and servlets. This integration only needs to modify the Apache and Tomcat configuration files.
Tomcat can also be integrated with some other software for more functionality. As with the above mentioned JBoss integration to develop EJBS, and Cocoon (another Apache project) to develop an XML-based application, integration with the OPENJMS to develop JMS applications, in addition to the few we mentioned, can be integrated with Tomcat and many other software.

II. Jboss


JBoss is the result of a concerted effort by developers around the world, a Java EE-based open source code and a free Application server.
JBoss supports the specification of EJB 1.1,EJB 2.0 and EJB3.0, which is a container and server for managing EJBS. JBoss's goal is a source-code open Java environment. However, the JBoss Core service only provides the EJB server. JBOSS4 does not include Servlet/jsp's web container before, and of course it can be used with Tomcat or jetty bindings. The Web server is embedded after JBoss4.
JBoss has the following six major benefits:
1, JBoss free, open source.
2. JBoss requires less memory and hard disk space.
3, easy to install. Unpack the JBoss package files and then configure the environment variables.
4, JBoss can be "hot deployment", deployment beans simply copy the bean's jar file to the deployment path. Load it if it is not loaded, unload it if it is already loaded, and load the new one.
5, JBoss and the Web server running in the same Java virtual machine, servlet call EJB does not go through the network, which greatly improve the efficiency of operation, improve security performance.

6, users can directly implement J2ee-ear, rather than the previous implementation of Ejb-jar and Web-war respectively, very convenient.

Third, JBoss Web

JBoss Web is the JBoss Web server,
The Jbossweb server is a new open source project that will provide a standalone, high-performance deployment platform for Jsp,servlet technology, Microsoft asp.net,php, and CGI. Jbossweb is built on Apache TOMCAT,APR (Apache portable rumtime) and Tomcat native technology to achieve stability and performance that can rival Apache HTTP servers or even surpass it.
The JBoss Web server has the following features:
Capable of handling more than 10,000 concurrent connections;
Support Http,https and AJP (Apache jserv Protocol) protocol;
Support for OpenSSL Secure Sockets Layer;
Provides a flexible URL rewriting operation engine supports unlimited number of rules and rule conditions;

Support CGI and PHP scripts, ASP. NET application in and out-of-process execution, and so on.

Four, three relations:

Tomcat is a Web server because it is capable of handling HTTP requests and responses for executable devices, so called Web servers, and Tomcat can manage the small service program (servlet/jsp) Lifecycle (lifecycle), so it becomes web/ Servlet container.
An application server is a technical architecture that manages Web applications. In a sense, a Web server belongs to a subset of application servers.

In general, Web servers specialize in HTTP requests (request), whereas application servers provide (serves) business logic for applications through a number of protocols. JBoss belongs to the application server and follows the Java EE specification, and can deploy EJB applications, which Tomcat cannot. Versions prior to JBOSS4 do not handle servlets and JSPs and need to be used in conjunction with Tomcat (or other Web servers), and the version after JBOSS4 has been embedded in Tomcat with the functionality of the Web server.

Tomcat also provides JNDI support, which is consistent with those provided by the Java EE Application Server. The application server provides more features of the Java EE, such as Ejb,jms,jaas, and some application servers also support JSPs and Servlets. While Tomcat is less powerful, it does not provide support for EJBS. But if you integrate with JBoss (an open source application server), you can implement the full functionality of the Java EE. Since the application server has Tomcat capabilities, is there any need for Tomcat? In fact, many of our small and medium-sized applications do not require the use of technology such as EJB, JSP and servlet is enough, when using the application server is a bit wasteful. While Tomcat is short, easy to configure and can meet our needs, we will naturally choose Tomcat in this case.

The JBoss web takes the Tomcat kernel as its servlet container engine and is audited and tuned. Simple Tomcat performance is limited and is lacking in many places, such as active connection support, static content, large files, and HTTPS.
JBoss builds on Tomcat, localizing it, and integrating Tomcat into JBoss in a way that is embedded within it.
The JBoss Web addresses the many shortcomings of Tomcat by using a hybrid model of APR and Tomcat native technology. The hybrid technology model provides the best threading and event handling from the latest operating system technologies. As a result, the JBoss web has reached scalability, matching performance parameters even beyond the local Apache HTTP server or IIS. For example, JBoss Web can provide database connection pooling services, not only support Java technology such as JSP, but also support the integration of other WEB technologies, such as PHP,. NET two camps.
JBoss Web has superior performance in terms of static resource access compared to Tomcat. JBoss Web supports two component modes-pure Java and native I/O.
OpenSSL is the industry's fastest and most secure open source transport component that enables efficient and secure hosting with the features of the operating system and hardware. The JBoss Web integrates OpenSSL to provide efficient and secure transport services, making security more steps. Research shows that the SSL performance in JBoss Web is four times times faster than that of simple tomcat.
Tomcat does not have URL rewriting capabilities, and JBoss Web provides a flexible URL rewriting operations engine that supports unlimited rule numbers and rule conditions. URLs can be rewritten to support legacy URL error handling, or other problems that the server may produce from time to point.
The JBoss Web can be run independently or seamlessly embedded in the JBoss application server as part of the JBoss middleware platform. Not only will the performance of background service calls be improved, but you can also use the features of the following JBoss platforms to enhance Web application capabilities
So jbossweb can be said to be a super-improved version of Tomcat, both are Web servers, and can be combined with Application server JBoss perfect.

Tomcat,jboss and JBoss Web

Related Article

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.