Jet Jet可以用作Java EE轻量级应用程序服务器吗? [英] Can Jetty be used as a Java EE lightweight application server?

查看:133
本文介绍了Jet Jet可以用作Java EE轻量级应用程序服务器吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在各种客户端站点部署小型Java EE Web应用程序的范围内,我正在寻找一种简单的应用程序服务器解决方案。

In the scope of deploying small Java EE web applications at various client sites, I am searching for an easy application server solution.

我想我记得听说过它可以使用Jetty作为JavaEE 6轻量级应用程序服务器,但我现在似乎无法在网上找到更多证据。

I think I remember hearing that it was possible to use Jetty as a JavaEE 6 lightweight application server but I can't seem to find more evidence on this right now on the web.

了解我的开发环境是JSF2 + RichFaces,CDI(Weld)和JPA 2 =>此时没有EJB),Jetty对我来说是一个可行的解决方案吗?

Knowing that my development environment is JSF2 + RichFaces, CDI (Weld) and JPA 2 => NO EJBs at this point), is Jetty a possible solution for me?

如果是的话,你能指点一些文件说明或特定的关键词来帮助我吗?
如果不是,我应该使用哪个其他轻量级Java EE 6应用服务器?

If yes, could you point me to some docmentation or specific keywords helping me? If no, what other lightweight Java EE 6 application server should I use?

推荐答案

Jetty是一个servlet容器,就像Tomcat一样。目前它完全不适合作为Java EE 6应用程序服务器,因为该堆栈中的servlet容器的核心要求是Servlet 3.0容器。

Jetty is a servlet container, just like Tomcat. At the moment it's utterly unsuited as a Java EE 6 application server since the core requirement for a servlet container in that stack is being a Servlet 3.0 container.

Jetty 7,最新稳定版,仍然是Servlet 2.5。目前没有人知道何时将发布支持Servlet 3.0的Jetty 8,但已经可以下载实验版本。请参见 http://www.eclipse.org/projects/project- plan.php?projectid = rt.jetty

Jetty 7, the latest stable version, is still at Servlet 2.5. At the moment nobody knows when Jetty 8, which will support Servlet 3.0 will be released, but experimental releases can already be downloaded. See http://www.eclipse.org/projects/project-plan.php?projectid=rt.jetty

即使Jetty 8最终可用,你当然还需要添加JSF2(Mojarra) ,CDI(Weld)和JPA2(Hibernate)。

Even when Jetty 8 will eventually be available, you'll of course still need to add JSF2 (Mojarra), CDI (Weld) and JPA2 (Hibernate).

目前轻量级替代品是Glassfish V3(尤其是Web Profile版本)。这个重量为47MB,为您提供完整的网络资料。 Glassfish在现代系统上启动大约一秒钟,在旧系统上启动大约2或3秒。内存开销很小。

Currently lightweight alternatives are Glassfish V3 (especially the Web Profile version). This weighs in at a 47MB download and gives you the full web profile. Glassfish starts up in approximately one second on modern systems and something like 2 or 3 on older ones. Memory overhead is minimal.

另一种选择是Caucho Resin。距离Java EE 6 Web Profile认证还有一英寸(参见 http:/ /caucho.com/resin-4.0/changes/resin-4.0.14.xtp ),并且出于所有实际目的,它已经完全可用作Java EE 6应用程序服务器。虽然我没有亲自使用Resin,但轻量级似乎是他们的首要任务。
(请注意'轻量级'是一个模糊而且有争议的术语)

Yet another alternative is Caucho Resin. It's an inch away from being Java EE 6 Web Profile certified (see http://caucho.com/resin-4.0/changes/resin-4.0.14.xtp), and for all practical purposes is already fully useable as a Java EE 6 application server. Although I haven't personally used Resin, being lightweight seems to be their top priorities. (do note that 'lightweight' is a vague and much disputed term)

最后,你可以给JBoss AS 6旋。很少有人会称JBoss AS为轻量级(快速硬件上的启动时间至少为12秒,下载大小为181MB),但它的免费和开源,并且根据您对轻量级的定义,这些数字可能足够好 。

Finally, you could give JBoss AS 6 a spin. Few people would call JBoss AS 'lightweight' (startup time on fast hardware is at least 12 seconds, and its download size is 181MB), but its free and open source and depending on your definition of lightweight those numbers may be 'good enough'.

这篇关于Jet Jet可以用作Java EE轻量级应用程序服务器吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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