简体   繁体   English

哪个是开发Java Web应用程序的最佳服务器?

[英]which is best server for developing java web applications?

I'm confused. 我糊涂了。 There are lot of servers(GlassFish, Tomcat, Apache,etc.,). 有很多服务器(GlassFish,Tomcat,Apache等)。 But which one is used to implement easy for developing web application? 但是哪一个用于实现易于开发的Web应用程序? Please suggest me. 请建议我。 Thanks in advance. 提前致谢。

Tomcat: it's free, and it's easy to work with. Tomcat:它是免费的,而且很容易使用。 It's also very widely used and has lots of documentation and "herd knowledge" eg here at SO. 它也被广泛使用,并且有很多文档和“群体知识”,例如在SO。

If you don't need EJB then it's a good safe choice. 如果您不需要EJB,那么这是一个很好的安全选择。

Edit: Tomcat was until recently the "reference implementation" of the Servlet/JSP, although as pointed out by commenters, Glassfish currently has that accolade. 编辑:Tomcat直到最近才成为Servlet / JSP的“参考实现”,尽管正如评论者所指出的那样,Glassfish目前还有这种荣誉。

Glassfish v3 is a slow starter (~30 secs), but its hotdeployments are fast . Glassfish v3是一个慢启动(约30秒),但它的热部署速度很快 It happens in less than a second, regardless of what you've edited: JSP files or Java classes. 无论您编辑什么,它都会在不到一秒的时间内发生:JSP文件或Java类。 At least, that was my experience in combination with Eclipse and the Glassfish Eclipse plugin . 至少,这是我与EclipseGlassfish Eclipse插件结合使用的经验。 Things which may matter a lot. 可能很重要的事情。 And as a bonus, you've the opportunity to play with the awesome Java EE 6 API . 作为奖励,您有机会使用优秀的Java EE 6 API

Tomcat 6.0 is quick starter, in ~3 secs it's up and running. Tomcat 6.0是快速启动程序,在3秒内启动并运行。 Hotdeploys of JSP files is acceptable, after ~3 seconds you can F5 to see the new one in browser. JSP文件的Hotdeploys是可以接受的,大约3秒后你可以在F5中查看浏览器中的新文件。 But hotdeploys of Java classes is sometimes troublesome. 但是Java类的热部署有时会很麻烦。 Sometimes it isn't picked up at all, or sometimes it takes too long that it's actually faster to manually restart Tomcat (which however takes "only" 3 seconds). 有时它根本没有被拾取,或者有时需要太长时间才能实际上更快地手动重启Tomcat(然而这只需要“3秒”)。

Take your pick. 随便挑选。 I'm just using both. 我只是两个都用。

I would go with either Apache's Tomcat or GlassFish. 我会选择Apache的Tomcat或GlassFish。

Tomcat has the benefit of being around longer and having a broader group of users, but GlassFish comes from Sun itself. Tomcat的好处是可以延长使用时间并拥有更广泛的用户群,但GlassFish来自Sun本身。 I've also heard that GlassFish's performance is above Tomcat. 我也听说GlassFish的性能高于Tomcat。

The more commonly used "lightweight" servlet containers are Tomcat, Resin, and Jetty. 更常用的“轻量级”servlet容器是Tomcat,Resin和Jetty。 They are lightweight because they implement only a few of the specifications (at the heart of which is servlet and JSP)/ The larger enterprise level applications JBoss, Glassfish, etc implement much more specifications on the server side. 它们是轻量级的,因为它们只实现了一些规范(其核心是servlet和JSP)/较大的企业级应用程序JBoss,Glassfish等在服务器端实现了更多的规范。

I'd just suggest Tomcat. 我只是建议Tomcat。 It's quick and easy to install, well documented, a support community behind it and very stable. 它安装快速简便,文档齐全,支持社区背后非常稳定。

By experience i would say: 根据经验,我会说:
1.Apache Tomcat is quick in respoding to clients,easy to deploy apps,medium to install. 1.Apache Tomcat可快速重新编写客户端,易于部署应用程序,中等安装。
2.Glassfish is i think less quicj=k in responding,easy to deplu apps,easy to install,configure and use. 2.Glassfish是我认为响应更少quicj = k,易于删除应用程序,易于安装,配置和使用。

So i would suggest glassfish 所以我会建议玻璃鱼

I've usually used Tomcat with no problems. 我通常使用Tomcat没有问题。 It's always been easy to setup and quick to deploy for me. 设置和快速部署对我来说总是很容易。 Sometimes when using NetBeans I will use Glassfish too. 有时使用NetBeans时我也会使用Glassfish。

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

相关问题 用于开发 Java Web 服务的最佳 IDE(适合初学者) - Best IDE for developing java web services (for beginners) 开发Web服务的最佳实践Java技术? - Best practice Java technology for developing web services? 如何在开发基于Java EE的Web应用程序时提高工作效率 - How to improve productivity when developing Java EE based web applications 这是java spring hibernate网站的最佳Web服务器 - which is best web server for java spring hibernate website Java Web应用程序的最佳邮件库 - Best mail library for Java web applications 用Java开发多线程应用程序 - Developing multi threaded applications in Java 构建使用多种编程语言开发Web应用程序的基础架构(Python Java C#) - Building an infrastructure for developing web-applications using multiple programming languages(Python Java C#) Java spring Web应用程序中实体本地化的最佳实践 - Best practice for entities localization in java spring web applications Java - 使用eclipse开发web gui的最佳框架是什么(应用程序是java和jsp)? - Java - what is the best framework for developing web gui with eclipse(app is java and jsp)? 地理编码服务:可与JAVA Web应用程序一起使用,因为它可靠 - Geocoding services : which can be used with JAVA web applications as reliable
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM