为什么使用Glassfish而不是Apache?它的优点和缺点是什么? [英] Why use Glassfish instead of Apache? What's it strengths and weaknesses?

查看:181
本文介绍了为什么使用Glassfish而不是Apache?它的优点和缺点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很抱歉我在这里无知,但是当我听到webserver这个词时,我立即想到了Apache,尽管我知道人们也使用微软的IIS。然而,由于我一直在这里挂在Stackoverflow,我注意到很多人使用Glassfish。



这让我想知道,为什么我要使用Glassfish(in我感兴趣的感觉,但我不明白为什么它会让我的生活更轻松)。从我读的是Sun的Apache Tomcat的开放源代码衍生产品,因此我认为它是一个很好的(或很好的)优质产品。但由于我不知道它的优点和缺点,我不知道什么时候选择Glassfish而不是另一台服务器是明智的。任何人都可以详细说明吗?

解决方案

GlassFish是一个应用服务器,它也可以用作Web服务器(Http Server)一个Web服务器的意思是:处理HTTP请求(通常来自浏览器)。

一个Servlet容器(例如Tomcat)是指:它可以处理servlets& JSP。

应用程序服务器(例如GlassFish)意味着:它可以管理Java EE应用程序(通常包括servlet / JSP和EJB)。

您应该使用GlassFish for Java EE企业应用程序。


Sorry for my ignorance here, but when I hear the word webserver, I immediately imagine Apache, although I know people use Microsoft's IIS too. However since I've been hanging out here at Stackoverflow I've noticed lots of people use Glassfish.

Which made me wonder, why would I want to use Glassfish (in the sense that I'm interested, but I don't really understand why it might make my life easier). From what I read it's Sun's open-source derivate of Apache's Tomcat, thus I imagine it's a good (or great) quality product. But since I don't know its strengths and weaknesses, I don't know when it would be wise to choose Glassfish over another server. Could anyone elaborate ?

解决方案

GlassFish is an Application Server which can also be used as a Web Server (Http Server).

A web Server means: Handling HTTP requests (usually from browsers).

A Servlet Container (e.g. Tomcat) means: It can handle servlets & JSP.

An Application Server (e.g. GlassFish) means: It can manage Java EE applications (usually both servlet/JSP and EJBs).

You should use GlassFish for Java EE enterprise applications.

这篇关于为什么使用Glassfish而不是Apache?它的优点和缺点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆