Saturday, July 30, 2011

Embedded Jetty

A lightweight embedded jetty project. Supports JSP 2.0 as well as log4j through slf4j. That's it!

https://github.com/asharif/embdjetty


To use in your project you download repo, compile with

mvn package

this creates a jar file with the good ol' '-with-dependencies'. that file is the server. You need to specify port on java -jar:

-Dport=8080

Now you can drop it in your favorite spring app, compile with the maven assembly plugin and you got a portable web app (well no embedded db but that's another story)

No comments:

Post a Comment