比较OpenEjb和Glassfish [英] Comparing OpenEjb and Glassfish

查看:151
本文介绍了比较OpenEjb和Glassfish的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以用Tomcat / OpenEJB替换Glassfish来获得更轻的应用程序吗?
OpenEJB与glassfish作为EJB容器相比的性能是多少。

can we replace Glassfish with Tomcat/OpenEJB for lighter applications? What is the performance of OpenEJB comparing to glassfish as EJB container.

OpenEJB而不是glassfish的限制是什么?

What is the restrictions of OpenEJB instead of glassfish?

注意

推荐答案

我猜这个问题是关于运行时环境,但仍然不明白是什么意思。内存占用?启动时间?部署时间?你有什么问题?并且请定义光。

I guess the question is about the runtime environment but still, I don't understand what lighter application does mean. Memory footprint? Startup time? Deployment time? What problem do you actually have? And please define light.

为什么值得,我认为GlassFish 3是一个轻的运行时间,我的经验是非常积极的。从产品数据表

For what it's worth, I consider GlassFish 3 as a light runtime and my experience with it is very positive. From the product data sheet:


Oracle GlassFish Server 3实现了OSGi运行时,可以根据需要将功能动态添加到Java服务器,并将最小可能的Java堆栈部署以支持应用程序。这有助于通过仅加载部署应用程序所需的模块来保持足够的占用空间,从而提高启动时间并减少资源利用率。

Oracle GlassFish Server 3 implements the OSGi runtime, which allows features to be dynamically added to the Java server as needed, and for the smallest possible Java stack to be deployed to support applications. This helps to keep the footprint as small as possible by loading only the modules required to service deployed applications—improving startup time and reducing resource utilization.

其次,我个人不喜欢Frankenstein的做法,我相信,使用真实应用程序服务器获得的所有部分之间的粘合剂是附加值的一部分,这实际上是为什么我使用应用程序服务器。

Second, I personally don't like the Frankenstein approach, I believe that the glue between all parts that you get with a real application server is part of the added value, that's actually why I use an app server.

第三,我从来没有打过OpenEJB,我只用它进行测试,从来没有计划将其用于生产,主要是因为它的声誉不佳。请参阅评论关于Geronimo在TSS上的表演(来自Hani Suleiman ,不要惊讶,如果它是苛性的):

Third, I never benched OpenEJB, I used it for testing only and never planned to use it for production, mostly because of its bad reputation. See this comment about Geronimo's performances on TSS (from Hani Suleiman, don't be surprised if it's caustic):


我想象说,EJB
层是'可接受的是关于
最好的事情你可以说。

I'd imagine that saying that the EJB tier is 'acceptable' is about the nicest thing you could say.

从我所知道的,geronimo的ejb代码
是基于openEJB,它有
历史上,豆是你可能找到的最糟糕的容器
。你必须要
看起来很难找到它,只有
被充满不同程度的
后悔/愤怒一旦你实现
可疑的目标。

From what I know, geronimo's ejb code is based off openEJB, which has, historically, bean the worst container you could possibly find. You'd have to look pretty hard to find it too, only to be filled with various degrees of regret/rage once you achieve that dubious goal.

G's
的性能一直是sub-par并不奇怪。
软件
构建的frankenstein方法是糟糕的
性能的好方法。当然,你会有很多
漂亮的图表,好看的
依赖关系图和松耦合。
所有这些都与
用户无关,他们想要一个连贯的appserver
,他们可以将其视为一个黑盒子。

It's not surprising that G's performance will always be sub-par. The frankenstein approach of software building is a great recipe for bad performance. Sure, you'll have lots of pretty diagrams, great looking dependency graphs, and loose coupling. All of which are fairly irrelevant to users who want a coherent appserver that they can treat as a black box.


事情可能已经改变,OpenEJB可能有所改善,至少有一点,但仍然存在:

Things might have changed, OpenEJB has probably improved, at least a bit, but still:


  • OpenEJB不完全支持EJB 3.1。

  • Tomcat + OpenEJB仍然不是一个完整的Java EE实现,您可能还需要为您的生物添加一些部分(甚至不提Java EE 6)。

  • 管理,集群等等?

  • 如果不需要完整的Java EE 6配置文件,那么就有Java EE 6 web profile

  • 我对GlassFish 3感到满意,我没有发现它很沉重(我建议尝试一下)。

  • 我知道它可以表现很好。

  • OpenEJB doesn't fully support EJB 3.1.
  • Tomcat + OpenEJB is still not a full Java EE implementation, you might still have to add some pieces to your creature (not even mentioning Java EE 6).
  • And what about the administration, clustering, etc?
  • If you don't need the full Java EE 6 profile, there is the Java EE 6 web profile
  • I'm happy with GlassFish 3, I don't find it "heavy" (and I suggest to try it).
  • I know it can perform well.

由于所有这些原因,我不会考虑Tomcat + OpenEJB而不是GlassFish,特别是没有问题要解决。

For all these reasons, I wouldn't consider Tomcat+OpenEJB instead of GlassFish, especially if there is no problem to solve.

  • Which technologies does Tomcat support
  • What is an Enterprise Java Bean really?
  • Real world comparisons of Glassfish and JBoss 5?
  • GlassFish 2 vs. Tomcat 6
  • Putting GlassFish v3 in Production: Essential Surviving Guide

这篇关于比较OpenEjb和Glassfish的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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