生产环境中的 Glassfish?
您在生产环境中使用 Glassfish 2 或 v3 吗?
你觉得它坚固吗?
您是否曾经找到过完整的文档集?
当您发现 Glassfish 忽略 J2EE 标准(例如类和注释扫描)时,您会怎么做?
Do you use Glassfish 2 or v3 in a production environment?
Do you find it robust?
Have you ever been able to find a complete set of documentation?
What do you do when you find that Glassfish ignores J2EE standards, like class and anotation scanning?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Glassfish 是 Sun 的 J2EE 应用服务器参考标准。 V3支持新的3.1标准。然而,这只是预览。目前计划于 2009 年 12 月 10 日发布。当然,在生产环境中成为早期采用者总是很危险的。例如,当前 V3 不支持 JMS 或集群,但它们应该在最终版本中。
我在生产中使用 V2 已经大约 3 年了,我个人很喜欢它。 Web 管理控制台使其非常易于管理(http://localhost:4848, admin, adminadmin),并且性能良好。下面是一个示例,其中有人对 Glassfish 进行了基准测试:博客。当然,您应该搜索更多示例和您的 YMMV。这是 Sun Glassfish 文档,旨在帮助 Tomcat 用户。
我要补充的最后一件事是 Sun 在其 Java IDE 中发布并集成了 Tomcat 和 Glassfish Netbeans 这样您就可以轻松地在两个应用程序服务器之间切换来测试您的特定应用程序。
Glassfish is Sun's reference standard for a J2EE app server. V3 supports the new 3.1 standard. However, it is only a preview. It is currently scheduled to be released on Dec 10, 2009. Of course, it can always be dangerous to be a very early adopter in a production environment. Currently V3 doesn't support JMS or clustering, for example, but they should be in the final release.
I've used V2 in production for about 3 years and I personally like it. The web admin console makes it very easy to manage (http://localhost:4848, admin, adminadmin), and the performance is good. Here's one example, where someone benchmarked Glassfish: Blog. Of course, you should search for more examples and your YMMV. Here's a Sun document for Glassfish to help Tomcat User.
One last thing that I would add is that Sun ships, and integrates, both Tomcat and Glassfish in their Java IDE Netbeans so you can easily switch between the two app servers to test your particular app.
GlassFish Server V3 或 V2 可以在生产环境中使用,但用户数量应小于 1500。在高负载期间,它的鲁棒性和可扩展性不太好。如果用于简单的应用程序,GF 工作得很好,因为它是 Sun 的 Java EE 标准的参考实现,它只能作为其他应用程序服务器供应商的指南。
对于更复杂和高负载的应用程序,最好使用 IBM WebSphere Application Server。这是我 15 年经验中见过的最强大的应用服务器。
GlassFish Server V3 or V2 can be used in production environments but the number of users should be less than 1500. Its not very robust and scalable during high load. If used for simple applications GF works perfectly fine, as it is the reference implementation of Java EE standards by Sun which only server to be a guide to other vendors of application servers.
For more complex and high load applications, its better to go to IBM WebSphere Application Server. That's the most robust app server I have seen in my 15 yrs of experience.
我在生产中使用 GF 吗?不。
我觉得它坚固吗?是的,但我不会对它征税很重。
我找到过一套完整的文档吗?我想是的... GlassFish v2.1 文档 和 GlassFish v3 文档 (http://docs.sun.com/app/docs/prod/gf.entsvr.v3?l=en&a=view)
GlassFish 时我该怎么办忽略 J2EE 标准?我在这里提出一个问题:https://glassfish.dev.java.net/issues/
Do I use GF in production? no.
Do I find it robust? yes, but I do not tax it very hard.
Have I ever found a complete set of documentation? I think so... the GlassFish v2.1 docs and the GlassFish v3 docs (http://docs.sun.com/app/docs/prod/gf.entsvr.v3?l=en&a=view)
What do I do when GlassFish ignores the J2EE standards? I file an issue here: https://glassfish.dev.java.net/issues/
我在生产中使用吗?是的。 (现在使用 3.0.1)
它健壮吗?是的。但我的观点是来自喜欢关注服务器开发者社区并可以尝试一些技巧的人。
文档呢?官方的确实很好,开发者博客也是一个很大的优势(http://blogs.oracle.com/theaquarium/)。目前,可能与其他社区相距甚远的是集体经验材料(如论坛),但我认为邮件列表已经足够好了(http://glassfish.java.net/public/mailing-lists.html) 。
Do I use in production? Yes. (Now, using 3.0.1)
Is it robust? Yes. But my point of view is from someone that likes to follow the server's developers community and can try some tricks.
What about documentation? The official one is really good, and the developers blogs are a great plus (http://blogs.oracle.com/theaquarium/). What is maybe far from other communities, at the moment, is the collective experience material (like forums), but I think the mail lists are good enough (http://glassfish.java.net/public/mailing-lists.html).