简体   繁体   English

玻璃鱼,tomcat和球衣

[英]glassfish, tomcat and jersey

If I use Glassfish and only need jersey for jax-rs and grizzly for servlet/jsp, will glassfish load all other Java EE components I don't need and take more up more resources than just running jersey/tomcat or will glassfish just load jersey/grizzly and will use almost the same resources? 如果我使用Glassfish,并且只需要jax-rs所需的球衣,而servlet / jsp则需要grizzly,那么glassfish会装载我不需要的所有其他Java EE组件,并且比运行jersey / tomcat占用更多的资源,或者glassfish只会装载球衣/ grizzly,将使用几乎相同的资源吗? I have tried running starting default glassfish and default tomcat, glassfish takes much more ram. 我试过运行默认的glassfish和默认的tomcat,glassfish需要更多的内存。

Is there any reason not to run jersey with tomcat? 有什么理由不与Tomcat一起穿球衣吗? maybe because the integration is done better by Glassfish? 也许是因为Glassfish更好地完成了集成?

There are lots of people who use Jersey with Tomcat. 有很多人将Jersey与Tomcat一起使用。 Tomcat is a servlet container only but will not interfere with other Java EE technologies that you choose to support through other means (eg Jersey). Tomcat只是一个servlet容器,不会干扰您选择通过其他方式(例如Jersey)支持的其他Java EE技术。 You may have to manage some of the initialization of the frameworks, etc. that other full-J2EE containers like Glassfish already provide, but it shouldn't be too painful. 您可能必须管理某些框架的初始化等,例如Glassfish之类的其他完整J2EE容器已经提供的框架,但这应该不会太麻烦。

You can use the 'web profile' to help minimize the download, initial memory and start-up time. 您可以使用“网络配置文件”来帮助最大程度地减少下载,初始内存和启动时间。

The most recent web profile is http://dlc.sun.com.edgesuite.net/glassfish/3.1.2.2/release/glassfish-3.1.2.2-web.zip 最新的网络配置文件是http://dlc.sun.com.edgesuite.net/glassfish/3.1.2.2/release/glassfish-3.1.2.2-web.zip

The start-up time is between Tomcat and the GlassFish 'full' profile. 启动时间介于Tomcat和GlassFish“完整”配置文件之间。

The web profile includes an integrated implementation of Jersey. 该网络配置文件包括Jersey的集成实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Tomcat Jersey Eclipse ClassNotFound org.glassfish.jersey.servlet.ServletContainer - Tomcat Jersey Eclipse ClassNotFound org.glassfish.jersey.servlet.ServletContainer Tomcat 7 ClassNotFoundException:org.glassfish.jersey.servlet.ServletContainer - Tomcat 7 ClassNotFoundException:org.glassfish.jersey.servlet.ServletContainer Tomcat + Jersey产生org.glassfish.jersey.server.ContainerException:java.lang.NoClassDefFoundError - Tomcat + Jersey produces org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError Glassfish和Tomcat - Glassfish and Tomcat java.lang.NoClassDefFoundError: org/glassfish/jersey/internal/inject/Binder 启动 Tomcat 服务器时 - java.lang.NoClassDefFoundError: org/glassfish/jersey/internal/inject/Binder when started Tomcat Server Tomcat中的跨上下文请求转发导致java.lang.ClassCastException:org.glassfish.jersey.message.internal.TracingLogger - Cross-context request forwarding in tomcat results in java.lang.ClassCastException: org.glassfish.jersey.message.internal.TracingLogger 球衣2.0-Glassfish 4投放例外 - Jersey 2.0 - Glassfish 4 Cast exception 停止GlassFish包装运动衫例外 - Stop GlassFish wrapping Jersey exceptions glassfish jersey FormDataContentDisposition getSize返回-1 - glassfish jersey FormDataContentDisposition getSize returning -1 在Glassbean 4的Netbeans 8中包括Jersey for ResourceConfig - Including Jersey for ResourceConfig in Netbeans 8 with Glassfish 4
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM