为什么我们需要 Java 应用服务器
为什么我们需要 Java 应用程序服务器,例如 JBoss 或 WebSphere。我们是否可以仅使用Java(Apache Tomcat)来开发大型网站?成千上万的用户同时在现场连接。一个例子是 b2b 之类的网站。
应用服务器的成本是多少?如果您比较不同应用程序服务器之间的价格,并且如果有任何免费版本,请突出显示,我将不胜感激。
Why do we need Application Server in Java like JBoss or WebSphere. Is it possible that we develop large scale website only with Java (Apache Tomcat). Where thousand of user connect on site at a moment. An example is a website like b2b.
What is the cost of a Application Server? I will be thankful if you compare price among different application server and if there is any free version kindly highlight it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
如果您想使用事务管理、热代码交换和高级持久性等高级功能,则主要使用应用程序服务器。
有一些开源的应用程序服务器。例如 GlassFish 和 JBoss。
我认为您不需要应用程序服务器来构建流行的网站,您也可以使用像 Tomcat 或 Jetty。
Application Servers are mostly used if you want to use advanced features like transaction management, hot code swapping and advanced persistence.
There are application servers that are open source. E.g. GlassFish and JBoss.
I don't think you need an application server for building a popular web site, you'll also be fine with a servlet container like Tomcat or Jetty.
简而言之,应用程序服务器为您提供了一些服务,例如
等。
您必须在 Web 服务器中自己处理这些事情。
很少有免费的开源应用程序服务器。
我用过玻璃鱼。
In short Application Servers provide you with few services like
etc.
You have to take care of these things yourself in a Web Server.
There are few Open Source Application servers which are free of cost.
I have used Glassfish.
除了上面给出的答案之外,EJB 还需要应用程序服务器。
Apart from answers given above, App Servers are required for EJBs.
您需要应用服务器如下:
You need Application Server as follow:
可以自己处理 httpheaders。我们用 java 做套接字服务器已有 20 年了。您不需要 java swing 的容器。
持久性可以通过数据库或服务器端文件来完成,除非您需要真正的高速东西。我还没有找到 ejb 的真正需求
除了某些系统只需要它们
It is possible to handle the httpheaders yourself. We have done socket servers in java for 20 years. You do not need a container for java swing.
Persistence can be done through databases or server side files unless you need real high speed stuff. I have yet to find a real requirement for an ejb
except that some systems simply require them
这可能是因为jboss可以提供更好的售后服务,jboss等可以提供运维支持等等,这可能是很多大公司选择商业版服务器的原因。
但你要知道tomcat和netty也不错。比如很多大型的B2B或者C2C或者B2C公司仍然在使用tomcat,比如阿里巴巴这样的互联网公司。
选择服务器
This may be because jboss can provide better after-sales service, and jboss, etc. can provide operation and maintenance support, etc. This may be the reason why many large companies choose commercial versions of servers.
But you must know that tomcat and netty are not bad. For example, many large B2B or C2C or B2C companies still use tomcat, such as Internet companies such as Alibaba.
Choose a server