150 lines
6.9 KiB
XML
150 lines
6.9 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
|
|
|
|
<!-- =============================================================== -->
|
|
<!-- Configure the Jetty Server -->
|
|
<!-- -->
|
|
<!-- Documentation of this file format can be found at: -->
|
|
<!-- http://docs.codehaus.org/display/JETTY/jetty.xml -->
|
|
<!-- -->
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
|
|
|
<!-- =========================================================== -->
|
|
<!-- Server Thread Pool -->
|
|
<!-- =========================================================== -->
|
|
<Set name="ThreadPool">
|
|
<!-- Default queued blocking threadpool
|
|
-->
|
|
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
|
|
<Set name="minThreads">10</Set>
|
|
<Set name="maxThreads">200</Set>
|
|
</New>
|
|
|
|
<!-- Optional Java 5 bounded threadpool with job queue
|
|
<New class="org.eclipse.jetty.util.thread.ExecutorThreadPool">
|
|
<Arg name="coreSize" type="int">25</Arg>
|
|
<Arg name="maxSize" type="int">50</Arg>
|
|
<Arg name="maxIdleMs" type="long">30000</Arg>
|
|
</New>
|
|
-->
|
|
</Set>
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
|
<!-- Set connectors -->
|
|
<!-- =========================================================== -->
|
|
|
|
<Call name="addConnector">
|
|
<Arg>
|
|
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
|
<Set name="host"><Property name="jetty.host" /></Set>
|
|
<Set name="port"><Property name="jetty.port" default="8080"/></Set>
|
|
<Set name="maxIdleTime">300000</Set>
|
|
<Set name="Acceptors">2</Set>
|
|
<Set name="statsOn">false</Set>
|
|
<Set name="confidentialPort">8443</Set>
|
|
<Set name="lowResourcesConnections">20000</Set>
|
|
<Set name="lowResourcesMaxIdleTime">5000</Set>
|
|
</New>
|
|
</Arg>
|
|
</Call>
|
|
|
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
<!-- To add a HTTP blocking connector -->
|
|
<!-- mixin jetty-bio.xml: -->
|
|
<!-- java -jar start.jar etc/jetty.xml etc/jetty-bio.xml -->
|
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
|
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
<!-- To allow Jetty to be started from xinetd -->
|
|
<!-- mixin jetty-xinetd.xml: -->
|
|
<!-- java -jar start.jar etc/jetty.xml etc/jetty-xinetd.xml -->
|
|
<!-- -->
|
|
<!-- See jetty-xinetd.xml for further instructions. -->
|
|
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
|
|
<!-- =========================================================== -->
|
|
<!-- Set handler Collection Structure -->
|
|
<!-- =========================================================== -->
|
|
<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>
|
|
|
|
<!-- =========================================================== -->
|
|
<!-- Configure the deployment manager -->
|
|
<!-- -->
|
|
<!-- Sets up 2 monitored dir app providers that are configured -->
|
|
<!-- to behave in a similaraly to the legacy ContextDeployer -->
|
|
<!-- and WebAppDeployer from previous versions of Jetty. -->
|
|
<!-- =========================================================== -->
|
|
<Call name="addBean">
|
|
<Arg>
|
|
<New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
|
|
<Set name="contexts">
|
|
<Ref id="Contexts" />
|
|
</Set>
|
|
<Call name="setContextAttribute">
|
|
<Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
|
|
<Arg>.*/jsp-api-[^/]*\.jar$|.*/jsp-[^/]*\.jar$</Arg>
|
|
</Call>
|
|
<!-- Providers of OSGi Apps -->
|
|
<Call name="addAppProvider">
|
|
<Arg>
|
|
<New class="org.eclipse.jetty.osgi.boot.OSGiAppProvider">
|
|
<!--
|
|
<Set name="defaultsDescriptor"><Property name="jetty.home" default="."/>/etc/webdefault.xml</Set>
|
|
-->
|
|
<Set name="scanInterval">5</Set>
|
|
<Set name="contextXmlDir"><Property name="jetty.home" default="." />/contexts</Set>
|
|
<!-- comma separated list of bundle symbolic names that
|
|
contain custom tag libraries (*.tld files)
|
|
if those bundles don't exist or can't be loaded no errors or warning will be issued!
|
|
this default value is to plug the tld files of the reference implementation of JSF -->
|
|
<Set name="tldBundles"><Property name="org.eclipse.jetty.osgi.tldsbundles"
|
|
default="javax.faces.jsf-impl" /></Set>
|
|
</New>
|
|
</Arg>
|
|
</Call>
|
|
|
|
</New>
|
|
</Arg>
|
|
</Call>
|
|
|
|
<!-- =========================================================== -->
|
|
<!-- extra options -->
|
|
<!-- =========================================================== -->
|
|
<Set name="stopAtShutdown">true</Set>
|
|
<Set name="sendServerVersion">true</Set>
|
|
<Set name="sendDateHeader">true</Set>
|
|
<Set name="gracefulShutdown">1000</Set>
|
|
|
|
<!-- jetty-jndi by default -->
|
|
<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>
|