You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jg...@apache.org on 2005/05/03 05:40:18 UTC
svn commit: r167850 -
/geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml
Author: jgenender
Date: Mon May 2 20:40:18 2005
New Revision: 167850
URL: http://svn.apache.org/viewcvs?rev=167850&view=rev
Log:
Added Valve configurations for Engine and Host
Modified:
geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml
Modified: geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml?rev=167850&r1=167849&r2=167850&view=diff
==============================================================================
--- geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml (original)
+++ geronimo/trunk/modules/assembly/src/plan/j2ee-server-tomcat-plan.xml Mon May 2 20:40:18 2005
@@ -114,6 +114,9 @@
</reference>
</gbean>
+ <!-- The following is the equivalent of the server.xml file, but done with GBeans -->
+
+ <!-- The TomcatContainer/Service -->
<gbean name="TomcatWebContainer" class="org.apache.geronimo.tomcat.TomcatContainer">
<attribute name="catalinaHome">var/catalina</attribute>
<reference name="engineGBean">
@@ -161,6 +164,7 @@
</gbean>
-->
+ <!-- Engine -->
<gbean name="TomcatEngine" class="org.apache.geronimo.tomcat.EngineGBean">
<attribute name="className">org.apache.geronimo.tomcat.TomcatEngine</attribute>
<attribute name="initParams">
@@ -170,8 +174,34 @@
<reference name="realmGBean">
<name>TomcatJAASRealm</name>
</reference>
+ <!-- Uncomment this to add the valve chain below to the Engine
+ <reference name="TomcatValveChain">
+ <name>FirstValve</name>
+ </reference>
+ -->
</gbean>
+ <!-- Valve -->
+ <! -- Uncomment this section to add a valve chain. This example consists of the Tomcat
+ SingleSignOn and AccessLogValve. Notice the dependency that chains the FirstValve with the
+ SecondValve. The valves will be added in the order that they are chained.
+ <gbean name="FirstValve" class="org.apache.geronimo.tomcat.ValveGBean">
+ <attribute name="className">org.apache.catalina.authenticator.SingleSignOn</attribute>
+ <reference name="NextValve"><moduleType>J2EEModule</moduleType><name>SecondValve</name></reference>
+ </gbean>
+
+ <gbean name="SecondValve" class="org.apache.geronimo.tomcat.ValveGBean">
+ <attribute name="className">org.apache.catalina.valves.AccessLogValve</attribute>
+ <attribute name="initParams">
+ prefix=localhost_access_log.
+ suffix=.txt
+ pattern=common
+ </attribute>
+ </gbean>
+ -->
+
+ <!-- Realm -->
+ <!-- This is an example TomcatJAASRealm -->
<gbean name="TomcatJAASRealm" class="org.apache.geronimo.tomcat.RealmGBean">
<attribute name="className">org.apache.geronimo.tomcat.realm.TomcatJAASRealm</attribute>
<attribute name="initParams">
@@ -180,6 +210,7 @@
</attribute>
</gbean>
+ <!-- Host -->
<gbean name="TomcatHost" class="org.apache.geronimo.tomcat.HostGBean">
<attribute name="className">org.apache.catalina.core.StandardHost</attribute>
<attribute name="initParams">
@@ -190,6 +221,24 @@
<reference name="engineGBean">
<name>TomcatEngine</name>
</reference>
+ <!-- You may attach a Realm to a Host as well. Only attach to the Engine *or* the Host.
+ Attempting to add the same Realm GBeans to the Engine *and* Host at the same time
+ will result in an error.
+
+ Uncomment this to add the Realm to the Host
+ <reference name="realmGBean">
+ <name>TomcatJAASRealm</name>
+ </reference>
+ -->
+ <!-- You may attach a Valve chain to a Host as well. Only attach to the Engine *or* the Host.
+ Attempting to add the same valve GBeans to the Engine *and* Host at the same time
+ will result in an error.
+
+ Uncomment this to add the valve chain to the Host
+ <reference name="TomcatValveChain">
+ <name>FirstValve</name>
+ </reference>
+ -->
</gbean>
</configuration>