Jetty分布与hightide(Jetty distribution vs hightide)

究竟有什么区别? 我最近一直在使用Jetty 8.0.0,当我尝试分发下载时,我无法同时使用WebSockets和Servlet 3.0 @WebServlet注释。 如果我使用hightide ,它就可以了。

分发有什么意义?

What exactly is the difference? I've been using Jetty 8.0.0 lately and when I try the distribution download I cannot get neither WebSockets nor Servlet 3.0 @WebServlet annotation to work. If I use hightide, it just works.

What is the point of the distribution?

最满意答案

我也对这种差异感兴趣,网上的内容令人困惑。 这是Jesse McConnell( https://stackoverflow.com/users/1185262/jesse-mcconnell )对[jetty-users]邮件列表上刚刚发布的问题的回答( http://jetty.4.n6.nabble.com /jetty-users-jetty-versions-tt3675449.html ):

是的,hightide只是一个码头分布,有一些我们无法从eclipse分配到IP限制的附加内容。

在得到答案之前我做了很多挖掘,所以我将把结果包括在内以供参考。 我希望这有帮助。

来自eclipse.org的描述 :Jetty Hightide应用服务器是在codehaus上组装的jetty Web Server的分发版,其中包括预配置的JNDI,XA和JDBC等附加服务。 对于jetty-hightide-6,这是jetty-6的优化修补重建,而对于jetty-hightide-7,它是基于标准jetty-7工件与其他第三方集成相结合的分布。 - http://www.eclipse.org/jetty/about.php

来自docs.codehaus.org的描述 :Hightide是Jetty开源Web容器的优化版本分发版。 它预先集成了许多服务,这些服务通常只在J2EE应用程序服务器中找到,或者您自己必须自己编写的服务:JNDI,XA事务服务,JMS消息结构和JDBC可访问数据库。 由于Jetty重量轻,可插拔的架构,Hightide允许您轻松选择要使用的服务,甚至可以替换其他服务。 - http://docs.codehaus.org/display/JETTY/Hightide+Documentation

常见问题:“Mort Bay,Codehaus和/或Eclipse的Jetty有什么区别?” 在wiki.eclipse.org :最新版本的核心jetty-7及更高版本可从Eclipse获得,它使用org.eclipse.jetty打包。 对于Jetty的第6版,加上一些jetty-7组件,如RPMs,Debs,Hightide,请使用codehaus,它使用org.mortbay包装。 - http://wiki.eclipse.org/Jetty/FAQ

但是,这两个发行版的内容(参见下面的“下载”)都使用oej包装,所以我认为答案是完全正确的。

http://wiki.eclipse.org/Jetty上提到的功能

Jetty的Hightide发行版包含一个使用JAAS的示例webapp。 - http://wiki.eclipse.org/Jetty/Feature/JAAS Jetty支持web应用程序中的java:comp / env查找。 这是一项可选功能,您需要进行一些设置。 但是,如果您正在使用Jetty的Hightide发行版,则此功能已完全启用,因此您可以跳过任何设置步骤,只需阅读有关如何将对象放入Jetty的JNDI的部分,以便您可以在运行时检索它们。 - http://wiki.eclipse.org/Jetty/Feature/JNDI 默认情况下,标准码头分布不会启用注释处理,只能通过Hightide分发。 - http://wiki.eclipse.org/Jetty/Feature/Annotations

下载 :版本号似乎不同步:

http://download.eclipse.org/jetty/8.1.4.v20120524/dist/ http://dist.codehaus.org/jetty/jetty-hightide-8.1.4/

粗略看一下,内容看起来非常相似。

I'm interested in the difference too, and what's online is confusing. Here's Jesse McConnell's ( https://stackoverflow.com/users/1185262/jesse-mcconnell ) answer to my just-posted question on the [jetty-users] mailing list ( http://jetty.4.n6.nabble.com/jetty-users-jetty-versions-tt3675449.html ):

yes, hightide is just the jetty-distribution with some additions that we can not distribute from eclipse do to their IP restrictions.

I did a lot of digging around before I got that answer, so I'll include the results below for reference. I hope this helps.

Description from eclipse.org: The Jetty Hightide application server is a distribution of the jetty Web Server assembled at codehaus with additional services like JNDI, XA & JDBC preconfigured. For jetty-hightide-6 this is an optimized, patched rebuild of jetty-6, while for jetty-hightide-7 it is distribution based on the standard jetty-7 artifacts combined with other third party integrations. -- http://www.eclipse.org/jetty/about.php

Description from docs.codehaus.org: Hightide is an optimized, versioned distribution of the Jetty open source web container. It comes pre-integrated with a number of services usually only found in J2EE application servers, or which you would otherwise have to craft together yourself: JNDI, an XA transaction service, a JMS message fabric, and a JDBC accessible database. Thanks to Jetty's light weight, pluggable architecture, Hightide allows you to easily choose which of these services you want to use, or even replace them with others. -- http://docs.codehaus.org/display/JETTY/Hightide+Documentation

FAQ: "What's the difference between Jetty from Mort Bay, Codehaus and/or Eclipse?" at wiki.eclipse.org: The latest releases of core jetty-7 and later are available from Eclipse, which use the org.eclipse.jetty packaging. For versions 6 of Jetty, plus some jetty-7 components such as RPMs, Debs, Hightide, use codehaus, which uses the org.mortbay packaging. -- http://wiki.eclipse.org/Jetty/FAQ

However, the contents of the two distributions (see 'Downloads' below) both use the o.e.j packaging, so I don't think the answer is entirely correct.

Mentions of features at http://wiki.eclipse.org/Jetty:

The Hightide distribution of jetty contains an example webapp that uses JAAS. -- http://wiki.eclipse.org/Jetty/Feature/JAAS Jetty supports java:comp/env lookups in web apps. This is an optional feature and you need to do some setup. However, if you are using the Hightide distribution of Jetty, this feature is already fully enabled, so you can skip any setup steps, and just read the sections on how to put objects into Jetty's JNDI so that you can retrieve them at runtime. -- http://wiki.eclipse.org/Jetty/Feature/JNDI Annotation processing is not enabled by default by the standard jetty distribution, only by the Hightide distribution. -- http://wiki.eclipse.org/Jetty/Feature/Annotations

Downloads: Version numbers seem in-sync:

http://download.eclipse.org/jetty/8.1.4.v20120524/dist/ http://dist.codehaus.org/jetty/jetty-hightide-8.1.4/

After a cursory look, the contents look extremely similar.

更多推荐