Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Portable, Open-Source Java Web Server Recommendations? [closed]

Tags:

java

http

apache

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:

  1. Install Java.
  2. Download my executable tool.
  3. Run it from the command line.

Any idea if any of the popular frameworks like Java Spring or Grails offer support for this?

like image 827
matsko Avatar asked Sep 02 '26 20:09

matsko


2 Answers

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.

like image 57
ninesided Avatar answered Sep 05 '26 10:09

ninesided


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).

like image 34
imothee Avatar answered Sep 05 '26 10:09

imothee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!