Embedding Jetty 7 into a Java application (and programmatically configuring it)
I recently had to do this for work and had quite a bit of difficulty due to pretty much all the documentation available on the internets being for Jetty 6 (there has been several API/structural changes that means most of the Jetty 6 documentation is rendered useless).
This guide will show you how to create a Jetty 7 instance in your Java application and configure it programmatically (eliminating the need to load a jetty.xml config file, and therefore disallowing the user from frigging with the config (which was essential for my situation)). Read more…
