Java 哪个是最好的开源应用服务器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/217827/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 11:32:55  来源:igfitidea点击:

Which is the best Open source application server?

java

提问by Rejeev Divakaran

We are looking for a open source J2EE Application server for log budget deployments. We are considering JBoss and Glassfish. Which is the best open source application server? Any comparative study available?

我们正在寻找用于日志预算部署的开源 J2EE 应用程序服务器。我们正在考虑 JBoss 和 Glassfish。哪个是最好的开源应用服务器?有比较研究吗?

采纳答案by anjanb

JBoss has been used in production environment for over 6 years now. Glassfish's codebase is over 10 years BUT most of the code is recent. Glassfish v3 (still in beta) has a microkernel (so is Jboss 5) architecture.

JBoss 已经在生产环境中使用了 6 年多。Glassfish 的代码库已有 10 多年的历史,但大部分代码都是最新的。Glassfish v3(仍处于测试阶段)具有微内核(Jboss 5 也是如此)架构。

Glassfish has command line tools and a nice console. Since Glassfish is from sun, usually it will work well with the latest version of JDK/J2EE -- currently JDK 6/J2EE 5.

Glassfish 有命令行工具和一个不错的控制台。由于 Glassfish 来自 sun,因此通常它可以与最新版本的 JDK/J2EE 配合使用——目前是 JDK 6/J2EE 5。

Glassfish should work well in windows, solaris and linux. Jboss(from redhat) should work just fine on linux, windows for sure.

Glassfish 应该在 windows、solaris 和 linux 中运行良好。Jboss(来自 redhat)应该可以在 linux、windows 上正常工作。

community : a much much bigger community around Jboss. Glassfish still forming its community. Books and other 3rd party products are available for JBoss but not for Glassfish.

社区:围绕 Jboss 的更大的社区。Glassfish 仍在形成其社区。书籍和其他 3rd 方产品可用于 JBoss,但不可用于 Glassfish。

If something is mission critical and you need to get it up and running right now, you will NOT go wrong going with JBoss. However, if you have some time, in the long run Glassfish will NOT hurt you. Especially, if you're targeting Solaris.

如果某些事情是关键任务并且您需要立即启动并运行它,那么使用 JBoss 不会出错。但是,如果您有一些时间,从长远来看,Glassfish 不会伤害您。特别是,如果您的目标是 Solaris。

回答by Jorge Ferreira

A comparison table between JBoss, Geronimo and Tomcat for latter 2007.

2007 年后期 JBoss、Geronimo 和 Tomcat 之间的比较表。

This articlehas many interesting points to aid your decision and is worth reading:

这篇文章有很多有趣的观点可以帮助你做出决定,值得一读:

Geronimo 2 is the clear choice if your Java application needs are particularly extensive or if you just want to leverage total Java EE 5 compliance.Although JBoss 4.2 is not completely compatible with Sun's Java EE 5 standard, the JBoss 4.2 team is responsible for many of the cutting-edge technologies used by all of the servers and added to the standard Java EE 5 capabilities. Tomcat 6 by itself is a lightweight solution. It does not come with all the Java EE features and additional packages found in JBoss and Geronimo, but also doesn't require much memory and runs fast even on smaller servers.

如果您的 Java 应用程序需求特别广泛,或者您只想充分利用 Java EE 5 的全部兼容性,那么 Geronimo 2 是明智的选择。尽管 JBoss 4.2 不完全兼容 Sun 的 Java EE 5 标准,但 JBoss 4.2 团队负责所有服务器使用的许多尖端技术,并添加到标准 Java EE 5 功能中。Tomcat 6 本身就是一个轻量级的解决方案。它没有 JBoss 和 Geronimo 中的所有 Java EE 特性和附加包,而且不需要太多内存,即使在较小的服务器上也能快速运行。

In conclusion the author says:

最后作者说:

Bottom line: JBoss, Geronimo, and Tomcat are reliable, fast, and definitely able to handle the traffic on large-scale enterprise applications. Furthermore, many of the high-demand Java server technologies presented in the features comparison originate from the open source world, not the commercial one.

底线:JBoss、Geronimo 和 Tomcat 可靠、快速,并且绝对能够处理大型企业应用程序上的流量。此外,特性比较中提出的许多高需求 Java 服务器技术来自开源世界,而不是商业领域。

回答by Miguel Ping

I'm sure the answer depends on your specific needs. You won't go wrong with either Glassfish or Jboss. I tend to prefer Glassfish because of the nice admin console. My advice to you is that you draw you requirements and test both app servers. Most benchmarks I find on the net tend to be a little biased.

我相信答案取决于您的具体需求。Glassfish 或 Jboss 都不会出错。由于漂亮的管理控制台,我倾向于更喜欢 Glassfish。我给你的建议是你绘制你的需求并测试两个应用程序服务器。我在网上找到的大多数基准往往都有点偏差。

回答by Spencer Kormos

I would consider any bells and whistles you might be interested in. JBoss has a lot of nice integration points with frameworks, such as Hibernate, but has a history of not playing well with Spring. Both very useful frameworks, both code change your decision on how you might proceed.

我会考虑你可能感兴趣的任何花里胡哨的东西。JBoss 有很多很好的与框架的集成点,比如 Hibernate,但有一个与 Spring 不兼容的历史。两个非常有用的框架,两个代码都会改变您对如何进行的决定。

回答by Craig Day

After using JBoss from the very beginning and then switching to Glassfish in the last 6 months, I can honestly say that Glassfish is fast, reliable and full-featured. I would never consider going back. Im not talking "PetStore" here, my experience with these servers is in the high-transaction online stock-trading arena.

在从一开始使用 JBoss 到最近 6 个月切换到 Glassfish 之后,我可以诚实地说 Glassfish 快速、可靠且功能齐全。我永远不会考虑回去。我不是在这里谈论“PetStore”,我对这些服务器的体验是在高交易量的在线股票交易领域。

回答by jsight

I've had great experiences with JBoss 4.x, but unfortunately they seem to have gone off the tracks with their Java EE 5 implementation effort. The fact that JBoss 5 is so late getting to market is extremely disappointing.

我在 JBoss 4.x 方面拥有丰富的经验,但不幸的是,他们似乎在 Java EE 5 实现方面偏离了轨道。JBoss 5 上市这么晚的事实令人非常失望。

The most impressive to me right now is Glassfish. It has a great pace of development, and appears poised to dominate once Java EE 6 hits the wire.

现在给我印象最深的是 Glassfish。它的开发速度很快,一旦 Java EE 6 上线,它似乎将占据主导地位。

回答by Karl

Websphere CE is also worth looking at, but over all my vote would be for glassfish. The v3 version is looking very promising.

Websphere CE 也值得一看,但我的所有投票都投给了 glassfish。v3 版本看起来非常有前途。

Karl

卡尔