We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionI am currently looking for Lightweight open source web servers which can support Web Services written in Java.
My basic requirement is that it should occupy as much less RAM as possible at run开发者_开发问答time and should support Web Services written in Java.
The target number of concurrent users is around 100-150.
Any help would be highly appreciated. Thanking you in advance.
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.).
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.
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)
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.
精彩评论