We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
Jetty 是一个可嵌入的开源应用程序服务器(即运行时内存占用较低)手机等)。
Jetty is an open-source application server that is embeddable (i.e. it has a low memory footprint as it runs on mobile phones, etc.).
我发现tomcat非常方便。它很容易安装、部署你的网络应用程序并且相当稳定。所有 java servlet 容器都带有初始最小 RAM 设置,这几乎总是不够,您必须自己更改最大 RAM 设置。
I found tomcat very handy. It is easy to install, deploy your webapp and fairly stable. All java servlet containers come with initial minimal RAM setting which is almost always not enough and you will have to change maximum RAM setting yourself.
如果您想在桌面应用程序中部署 Web 服务并且正在寻找嵌入式服务器,则可以使用作为 J2SE6 一部分提供的
javax.xml.ws.Endpoint
。检查一下。通过
Endpoint
部署Web服务非常容易。并且是 Java 的一部分,因此您不会依赖第三方库。
另一个选择是 Jetty (Apache)
If you want to deploy web services in a desktop application and you are looking for embedded server, you can use the
javax.xml.ws.Endpoint
that is comes as part of J2SE6. Check it out.It is very easy to deploy web services via the
Endpoint
.And is part of Java so you will have no dependencies with third-party libraries.
Another option is Jetty (Apache)
不是那么轻量级,但我发现 glassfish 很容易设置和运行。我所要做的就是使用注释创建一个 EJB3 bean,Web 服务就完成了。真的很简单。这是为了概念验证,因此需要做更多的工作来进行正确的设置。
Not so lightweight, but I found glassfish easy to setup and get running. All I had to do was create a EJB3 bean using annotations and the web service was done. Really simple. This was for a proof of concept so would take more to do as a proper setup.