Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I want to develop a Java Web application with a similar architecture to Jenkins.

ID: 661815 • Letter: I

Question

I want to develop a Java Web application with a similar architecture to Jenkins. It shall ship with an embedded server, so that it can be started like

java -jar myapp.war

We are using Jenkins for a while now and I really like this aspect from my user's perspective.

Additionally I want to make several aspects of the application pluggable. Like user-management, authentication or reports. I mention this, as this may render the support for OSGI useful.

Other features I would like the server to have are

support for web sockets
support for SPDY

Aside of this I'd like the server to

have an active community
being open source is a plus

Currently I am tending towards Jetty. I also had a quick glance at Winstone, as it is the server that ships with Jenkins, but the later appears to be not developed further.

I am slightly aware of other servers, like Apache Felix or the possibility to embed Apache Tomcat, but I am rather inexperienced running these servers embedded.

Explanation / Answer

I have used Jetty for this. It is nonaweful. I find it more awkward than the equivalent tools for python.

It definitely is open source, and it is used in industry. Which is important.

(I don't have much to add, but if a friend came to me and said: "I want a embedded a webserver in a java program, I would tell them to use Jetty.")

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote