[jboss-cvs] JBossAS SVN: r76259 - trunk/tomcat/src/resources.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Jul 27 14:04:48 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-07-27 14:04:48 -0400 (Sun, 27 Jul 2008)
New Revision: 76259

Added:
   trunk/tomcat/src/resources/mod-cluster-beans.xml
Log:
[JBAS-5658] Initial Mod-Cluster integration into the JBossWeb Server

Added: trunk/tomcat/src/resources/mod-cluster-beans.xml
===================================================================
--- trunk/tomcat/src/resources/mod-cluster-beans.xml	                        (rev 0)
+++ trunk/tomcat/src/resources/mod-cluster-beans.xml	2008-07-27 18:04:48 UTC (rev 76259)
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+    Beans that provide JBoss AS-side functionality for mod_cluster. These
+    beans are all "On Demand", i.e. that are not installed unless requested.
+-->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- Configuration bean -->
+   <bean name="ModClusterConfig"
+         class="org.jboss.web.tomcat.service.modcluster.config.ModClusterConfig"
+         mode="On Demand">
+            
+       <!-- Configure this node's communication with the load balancer -->
+       
+       <!-- Comma separated list of address:port listing the httpd servers
+            where mod_cluster is running. 
+       <property name="proxyList"></property>
+        -->
+       <!--URL prefix to send with commands to mod_cluster. Default is no prefix
+       <property name="proxyURL">/bla</property>
+       -->
+       
+       <!-- mod_advertise is a small httpd module that advertises the 
+            availability of httpd servers via multicast, allowing 
+            ModClusterService to discover the httpd front-end instead of/in 
+            addition to having them defined in proxyList.
+       -->
+       <!-- Whether to listen for advertise messages -->
+       <property name="advertise">true</property>
+       <!-- Multicast address to listen on for advertisements -->
+       <property name="advertiseGroupAddress">${jboss.modcluster.advertise.address,jboss.partition.udpGroup:230.0.0.5}</property>
+       <!-- Port to listen to for advertisements -->
+       <property name="advertisePort">${jboss.modcluster.advertise.address:36588}</property>
+       
+       <!-- Key the front-end is going to send with advertise messages. 
+            Default is no key no check.
+       <property name="advertiseSecurityKey"></property>
+       -->
+       
+       <!-- Whether to use SSL to communicate with mod_cluster. Note this
+            has nothing to do with handling of https requests by JBoss Web -->
+       <property name="ssl">false</property>
+       
+       
+       <!-- Configuration values for the load balancer itself (must be the
+            same on all nodes in the cluster). These will be passed to the 
+            load balancer. -->
+       <property name="stickySession">true</property>
+       <property name="stickySessionForce">false</property>
+       <property name="stickySessionRemove">false</property>
+       <property name="maxAttempts">-1</property>
+       <property name="workerTimeout">-1</property>
+       
+   </bean>
+   
+   <!-- Provides information to ModClusterService informing it how much load 
+        this server should take.  This basic impl just uses a static 
+        configuration and doesn't adjust it based on runtime conditions. -->
+   <bean name="ModClusterLoadBalanceFactorProvider" 
+         class="org.jboss.web.tomcat.service.modcluster.load.impl.StaticLoadBalanceFactorProvider"
+         mode="On Demand">
+         
+      <property name="loadBalanceFactor">1</property>
+      
+   </bean>
+   
+   <!-- The core ModClusterService -->
+   <bean name="ModClusterService"
+         class="org.jboss.web.tomcat.service.modcluster.ModClusterService"
+         mode="On Demand">
+      
+      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.web:service=ModCluster",exposedInterface=org.jboss.web.tomcat.service.modcluster.ModClusterServiceMBean.class)</annotation>
+      
+      <constructor>
+         <parameter><inject bean="HAPartition"/></parameter>
+         <parameter><inject bean="ModClusterConfig"/></parameter>
+         <parameter><inject bean="ModClusterLoadBalanceFactorProvider"/></parameter>
+         <parameter><bean class="org.jboss.ha.singleton.HASingletonElectionPolicySimple"/></parameter>
+      </constructor>
+         
+   </bean>
+   
+   <!-- 
+        An org.apache.catalina.LifecycleListener impl that notifies 
+        ModClusterService of events inside JBoss Web (deployments, starts, stops. etc.)
+   -->
+   <bean name="ModClusterLifecycleListener"
+         class="org.jboss.web.tomcat.service.modcluster.BasicClusterListener"
+         mode="On Demand">      
+      
+      <constructor>
+         <parameter><inject bean="ModClusterService"/></parameter>
+      </constructor>
+         
+   </bean>
+
+</deployment>
\ No newline at end of file




More information about the jboss-cvs-commits mailing list