gerrit/gerrit-server
Shawn O. Pearce fa2486a397 Embed Jetty and run it out of `java -jar gerrit.war daemon`
We now include Jetty 7.x as part of our distribution WAR and allow
administrators to launch the embedded copy using our Daemon command
line program.  This vastly simplifies server installation as you
do not need to download the Jetty servlet container and configure
it prior to using Gerrit Code Review.

Configuration of Jetty is performed using our gerrit.config, rather
than the Jetty XML configuration language.  Jetty's language can be
quite a bit more powerful for isoteric configurations, but we want
to embed Jetty to simplify setup, not complicate it.  Gerrit's own
configuration file in the git syntax is simpler, so we stick with
that and offer a limited subset of Jetty's configuration features
through httpd.* properties.

Logging currently goes only to stderr, which is fine for toy setups
but probably not ideal for a production environment.

Unfortunately we are still relying on GerritServer.properties to
get us the database connection information, and this DataSource is
not pooled.  Thus the web handlers in our embedded container will
run slightly slower then the web handlers in a standalone container,
as the latter will be likely be using a connection pool configured
out of the container's JNDI namespace.

Bug: issue 202
Change-Id: Ia7956ba48cbc3a8d4241101db5ff493e16d26b9f
Signed-off-by: Shawn O. Pearce <sop@google.com>
2009-11-11 16:54:07 -08:00
..
.settings Rewrite our build as modular maven components 2009-11-11 16:54:06 -08:00
src Embed Jetty and run it out of `java -jar gerrit.war daemon` 2009-11-11 16:54:07 -08:00
.gitignore Rewrite our build as modular maven components 2009-11-11 16:54:06 -08:00
pom.xml Rewrite our build as modular maven components 2009-11-11 16:54:06 -08:00