Does anyone know a good Java Web Server framework that I can be bundled into an executable that can be run from the command line?
Basically something that allows me to develop a program that runs on a port via HTTP and for the user requires these installation steps:
Any idea if any of the popular frameworks like Java Spring or Grails offer support for this?
Have you had a look at Jetty?
From the Jetty site:
Jetty provides an Web server and javax.servlet container, plus support for Web Sockets, OSGi, JMX, JNDI, JASPI, AJP and many other integrations. These components are open source and available for commercial use and distribution.
Details on embedding Jetty can be found here.
My favorite embedded http server for Java is Jetty http://www.eclipse.org/jetty/
Spring can run on top of jetty or any other embedded server. It doesn't contain any code to be a server itself.
It's very simple to integrate and setup and runs quite efficiently for a small amount of users (have not tested it on more than that).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With