Apache, jboss, tomcat区别

Apache:http服务器(web服务器),类似IIS可以用于建立虚拟站点,编译处理静态页面;可以支持SSL技术,支持多个虚拟主机等功能;

Tomcat:servlet容器,用于解析jsp,servlet的Servlet容器,是高效,轻量级的容器;缺点: 不支持EJB,只能用于java应用;

Jboss:应用服务器,运行EJB的J2EE应用服务器,遵循J2EE规范,能够提供更多平台的支持和更多集成功能,如数据库连接,JCA等;其对servlet的支持是通过集成其他servlet容器来实现的,如tomcat和jetty;

Tomcat VS JBoss

JBoss is the application Server but Tomcat is the JSP/Servlet engine (web server) that means EJB cannot run in Tomcat
Wikipedia:

An application server is a server computer in a
computer network dedicated for running certain
software applications.

Tomcat is a servlet container, i.e. provides a framework for deploying and
running servlets (including JSP) in a webserver.

With the limited definition of application servers you could say that Tomcat
is also an application server, as you can build complete applications with
only servlets. However, that would be too restricted, as a common
requirement for modern application servers is to handle transactions and
database connections "transparently", which isn't built into Tomcat.

> is it the only difference between JBOSS and TOMCAT

You can't really talk about any "differences" between JBoss and Tomcat, as
JBoss is an application server that *includes* Tomcat.

> what are all the other main differences help me out

In our world of Java, it's more common to refer to J2EE as a more complete
reference of what an application server can and should include, of which
Tomcat only implements a part, while the complete download of JBoss
(including Tomcat) conforms to the full J2EE specification, and hence is a
more "complete" application server.

猜你喜欢

转载自phoenix-mvp.iteye.com/blog/1663101