2010-06-21 17:49:37 -04:00
|
|
|
<?xml version="1.0"?>
|
2013-02-01 07:03:11 -05:00
|
|
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
|
2010-06-21 17:49:37 -04:00
|
|
|
|
2012-05-09 12:28:28 -04:00
|
|
|
|
2010-06-21 17:49:37 -04:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Configure the Jetty Server -->
|
|
|
|
<!-- -->
|
|
|
|
<!-- Documentation of this file format can be found at: -->
|
2012-05-09 12:28:28 -04:00
|
|
|
<!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
|
2010-06-21 17:49:37 -04:00
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Server Thread Pool -->
|
|
|
|
<!-- =========================================================== -->
|
2012-09-24 01:04:57 -04:00
|
|
|
<Arg name="threadPool">
|
2012-05-09 12:28:28 -04:00
|
|
|
<!-- Default queued blocking threadpool -->
|
2010-06-21 17:49:37 -04:00
|
|
|
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
|
|
|
|
<Set name="minThreads">10</Set>
|
|
|
|
<Set name="maxThreads">200</Set>
|
|
|
|
</New>
|
2012-09-24 01:04:57 -04:00
|
|
|
</Arg>
|
2010-06-21 17:49:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
2012-08-10 09:51:27 -04:00
|
|
|
<!-- Set handler Collection Structure -->
|
2010-06-21 17:49:37 -04:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Set name="handler">
|
|
|
|
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
|
|
|
<Set name="handlers">
|
|
|
|
<Array type="org.eclipse.jetty.server.Handler">
|
|
|
|
<Item>
|
|
|
|
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
|
|
|
</Item>
|
|
|
|
<Item>
|
|
|
|
<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
|
|
|
|
</Item>
|
|
|
|
<Item>
|
|
|
|
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
|
|
|
|
</Item>
|
|
|
|
</Array>
|
|
|
|
</Set>
|
|
|
|
</New>
|
|
|
|
</Set>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- extra options -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Set name="stopAtShutdown">true</Set>
|
2012-08-10 09:51:27 -04:00
|
|
|
<Set name="stopTimeout">1000</Set>
|
2012-05-09 12:28:28 -04:00
|
|
|
<Set name="dumpAfterStart">false</Set>
|
|
|
|
<Set name="dumpBeforeStop">false</Set>
|
|
|
|
|
2012-08-10 09:51:27 -04:00
|
|
|
|
2012-05-09 12:28:28 -04:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- jetty-jndi by default -->
|
|
|
|
<!-- =========================================================== -->
|
2013-02-21 05:39:07 -05:00
|
|
|
<Call class="org.eclipse.jetty.webapp.Configuration$ClassList" name="setServerDefault">
|
|
|
|
<Arg><Ref refid="Server" /></Arg>
|
|
|
|
<Call name="addAfter">
|
|
|
|
<Arg name="afterClass">org.eclipse.jetty.webapp.FragmentConfiguration</Arg>
|
|
|
|
<Arg>
|
|
|
|
<Array type="String">
|
|
|
|
<Item>org.eclipse.jetty.plus.webapp.EnvConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.plus.webapp.PlusConfiguration</Item>
|
|
|
|
<Item>org.eclipse.jetty.annotations.AnnotationConfiguration</Item>
|
|
|
|
</Array>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
</Call>
|
|
|
|
|
2010-06-21 17:49:37 -04:00
|
|
|
<Call class="java.lang.System" name="setProperty">
|
|
|
|
<Arg>java.naming.factory.initial</Arg>
|
|
|
|
<Arg><Property name="java.naming.factory.initial" default="org.eclipse.jetty.jndi.InitialContextFactory"/></Arg>
|
|
|
|
</Call>
|
|
|
|
<Call class="java.lang.System" name="setProperty">
|
|
|
|
<Arg>java.naming.factory.url.pkgs</Arg>
|
|
|
|
<Arg><Property name="java.naming.factory.url.pkgs" default="org.eclipse.jetty.jndi"/></Arg>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
</Configure>
|