[jboss-cvs] JBossAS SVN: r65293 - in trunk/tomcat: src/resources and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Sep 11 11:07:08 EDT 2007


Author: bstansberry at jboss.com
Date: 2007-09-11 11:07:07 -0400 (Tue, 11 Sep 2007)
New Revision: 65293

Added:
   trunk/tomcat/src/resources/jboss-web-clusteredsso-beans.xml
Modified:
   trunk/tomcat/build.xml
   trunk/tomcat/src/resources/server.xml
Log:
[JBAS-4676] Provide a dedicated cache for ClusteredSingleSignOn

Modified: trunk/tomcat/build.xml
===================================================================
--- trunk/tomcat/build.xml	2007-09-11 15:02:43 UTC (rev 65292)
+++ trunk/tomcat/build.xml	2007-09-11 15:07:07 UTC (rev 65293)
@@ -308,6 +308,8 @@
          file="${build.lib}/jboss-web-cluster.aop"/>
   	<copy tofile="${build.deploy}/jboss-web-cluster/jboss-web-cluster-beans.xml"
   	      file="${build.resources}/jboss-web-cluster-beans.xml"/>
+   <copy tofile="${build.deploy}/jboss-web-cluster/jboss-web-clusteredsso-beans.xml"
+         file="${build.resources}/jboss-web-clusteredsso-beans.xml"/>
 
     <!-- Update the build marker to allow bypassing -->
     <touch file="${build-bypass.marker}"/>

Added: trunk/tomcat/src/resources/jboss-web-clusteredsso-beans.xml
===================================================================
--- trunk/tomcat/src/resources/jboss-web-clusteredsso-beans.xml	                        (rev 0)
+++ trunk/tomcat/src/resources/jboss-web-clusteredsso-beans.xml	2007-09-11 15:07:07 UTC (rev 65293)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- First we create a Configuration object for the cache -->
+   <bean name="ClusteredSSOCacheConfig" class="org.jboss.cache.config.Configuration">
+      
+      <!-- Externally injected services -->  
+      <property name="runtimeConfig">
+         <bean name="ClusteredSSOCacheRuntimeConfig" class="org.jboss.cache.config.RuntimeConfig">
+            <property name="transactionManager">
+            	<bean name="ClusteredSSOBatchManager" class="org.jboss.cache.transaction.BatchModeTransactionManager"/>
+            </property>
+            <property name="muxChannelFactory"><inject bean="JChannelFactory"/></property>
+         </bean>
+      </property>
+      
+      <property name="multiplexerStack">${jboss.multiplexer.stack:udp}</property>
+   
+      <property name="clusterName">${jboss.partition.name:DefaultPartition}-ClusteredSSOCache</property>
+   
+      <property name="nodeLockingSchemeString" class="java.lang.String">PESSIMISTIC</property>
+      <property name="isolationLevelString" class="java.lang.String">REPEATABLE_READ</property>
+      <property name="cacheModeString">REPL_ASYNC</property>
+   
+      <property name="syncReplTimeout">20000</property>
+      <property name="lockAcquisitionTimeout">15000</property>
+   
+      <property name="useRegionBasedMarshalling">false</property>
+      <property name="inactiveOnStartup">false</property>
+        
+      <property name="exposeManagementStatistics">true</property>
+   </bean>
+    
+   <!-- Now we use the above configuration to construct the cache itself -->
+   <bean name="ClusteredSSOCache" class="org.jboss.cache.jmx.CacheJmxWrapper">
+      
+      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.cache:service=ClusteredSSOCache", exposedInterface=org.jboss.cache.pojo.jmx.PojoCacheJmxWrapperMBean.class, registerDirectly=true)</annotation>
+      
+      <property name="configuration"><inject bean="ClusteredSSOCacheConfig"/></property>
+      
+   </bean>
+	
+</deployment>
\ No newline at end of file


Property changes on: trunk/tomcat/src/resources/jboss-web-clusteredsso-beans.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Modified: trunk/tomcat/src/resources/server.xml
===================================================================
--- trunk/tomcat/src/resources/server.xml	2007-09-11 15:02:43 UTC (rev 65292)
+++ trunk/tomcat/src/resources/server.xml	2007-09-11 15:07:07 UTC (rev 65293)
@@ -116,9 +116,8 @@
             
                Valve uses a JBossCache instance to support SSO credential 
                caching and replication across the cluster.  The JBossCache 
-               instance must be configured separately.  By default, the valve 
-               shares a JBossCache with the service that supports HttpSession 
-               replication.  See the "jboss-web-cluster-service.xml" file in the
+               instance must be configured separately.  See the 
+               "jboss-web-clusteredsso-beans.xml" file in the 
                server/all/deploy directory for cache configuration details.
             
                Besides the attributes supported by the standard Tomcat
@@ -130,9 +129,16 @@
                treeCacheName  JMX ObjectName of the JBossCache MBean used to 
                               support credential caching and replication across
                               the cluster. If not set, the default value is 
-                              "jboss.cache:service=TomcatClusteringCache", the 
-                              standard ObjectName of the JBossCache MBean used 
-                              to support session replication.
+                              "jboss.cache:service=ClusteredSSOCache"
+                              
+               maxEmptyLife   The maximum number of seconds an SSO with no 
+                              active sessions will be usable by a request
+                              
+               processExpiresInterval The minimum number of seconds between 
+                              efforts by the valve to find and invalidate 
+                              SSO's that have exceeded their 'maxEmptyLife'. 
+                              Does not imply effort will be spent on such
+                      			cleanup every 'processExpiresInterval'.
             -->
             <!--
             <Valve className="org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn" />




More information about the jboss-cvs-commits mailing list