|
Jetty example source code file (jetty-plus.xml)
The Jetty jetty-plus.xml source code<?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <!-- =============================================================== --> <!-- Configure Jetty Plus features --> <!-- --> <!-- This file sets up a WebAppDeployer to automatically deploy all --> <!-- webapps in $jetty.home/webapps-plus at startup time, and to --> <!-- enable all of them with Plus features (jndi etc). --> <!-- --> <!-- You can instead configure individual webapps with Jetty Plus --> <!-- features by using the ContextDeployer (configured in --> <!-- $jetty.home/etc/jetty.xml), and ensuring that you set the --> <!-- same set of classes listed below in the "plusConfig" as the --> <!-- webapp's configurationClasses. --> <!-- --> <!-- For more information about Jetty Plus, see the Jetty wiki at --> <!-- http://docs.codehaus.org/display/JETTY/Jetty+Wiki --> <!-- =============================================================== --> <Configure id="Server" class="org.mortbay.jetty.Server"> <!-- =========================================================== --> <!-- Example JAAS realm setup. --> <!-- The LoginModuleName must be exactly the same as in the --> <!-- login.conf file, and the realm Name must be the same as in --> <!-- the web.xml file. --> <!-- =========================================================== --> <!-- <Call name="addUserRealm"> <Arg> <New class="org.mortbay.jetty.plus.jaas.JAASUserRealm"> <Set name="name">xyzrealm <Set name="LoginModuleName">xyz </New> </Arg> </Call> --> <!-- =========================================================== --> <!-- Configurations for WebAppContexts --> <!-- Sequence of configurations to enable Plus features. --> <!-- =========================================================== --> <Array id="plusConfig" type="java.lang.String"> <Item>org.mortbay.jetty.webapp.WebInfConfiguration <Item>org.mortbay.jetty.plus.webapp.EnvConfiguration <Item>org.mortbay.jetty.plus.webapp.Configuration <Item>org.mortbay.jetty.webapp.JettyWebXmlConfiguration <Item>org.mortbay.jetty.webapp.TagLibConfiguration </Array> <!-- =========================================================== --> <!-- Deploy all webapps in webapps-plus --> <!-- =========================================================== --> <!-- Uncomment the following to set up a WebAppDeployer that will --> <!-- deploy webapps from a directory called webapps-plus. Note --> <!-- that you will need to create this directory first! --> <!-- <Call name="addLifeCycle"> <Arg> <New class="org.mortbay.jetty.deployer.WebAppDeployer"> <Set name="contexts"> <Set name="webAppDir"> Other Jetty examples (source code examples)Here is a short list of links related to this Jetty jetty-plus.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.