[jboss-cvs] JBossAS SVN: r58559 - trunk/cluster/src/etc

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Nov 18 06:22:21 EST 2006


Author: bstansberry at jboss.com
Date: 2006-11-18 06:22:20 -0500 (Sat, 18 Nov 2006)
New Revision: 58559

Modified:
   trunk/cluster/src/etc/cluster-beans.xml
Log:
Update configs

Modified: trunk/cluster/src/etc/cluster-beans.xml
===================================================================
--- trunk/cluster/src/etc/cluster-beans.xml	2006-11-18 11:22:00 UTC (rev 58558)
+++ trunk/cluster/src/etc/cluster-beans.xml	2006-11-18 11:22:20 UTC (rev 58559)
@@ -5,24 +5,29 @@
    <!-- ==================================================================== -->
    <!-- Shared cache for JBoss cluster services                              -->
    <!-- ==================================================================== -->
-   <!-- The HAPartitionCache instance defined here is shared by JBoss cluster services that
-         use JBossCache as their underlying data store.  Currently the services that share this 
-         cache are HAJNDI and DistributedState.  Valid changes to the JGroups configuration
-         shouldn't cause any problems; it should also be possible to change the cluster name but this 
-         isn't recommended since it will be more difficult for others to recognize that the renamed 
-         cluster is the one used by JBoss cluster services.  
+   
+   <!-- 
+        The HAPartitionCache instance defined here is shared by JBoss cluster services that
+        use JBossCache as their underlying data store.  Currently the services that share this 
+        cache are HAJNDI and DistributedState.  It is possible to change the cluster name but this 
+        isn't recommended since it will be more difficult for others to recognize that the renamed 
+        cluster is the one used by JBoss cluster services.  
    -->
    
    <!-- First we create a Configuration object for the cache -->
-   <bean name="HAPartitionCacheConfig" 
+   <bean name="DefaultPartition-HAPartitionCacheConfig" 
    		class="org.jboss.cache.config.Configuration">
         
-        <!--JGroups multiplexer is required for this cache -->
-        <property name="multiplexerService">jgroups.mux:name=Multiplexer</property>
+        <!-- Externally injected services -->  
+        <property name="runtimeConfig">
+           <bean name="DefaultPartition-HAPartitionCacheRuntimeConfig" class="org.jboss.cache.config.RuntimeConfig">
+              <property name="transactionManager"><inject bean="jboss:service=TransactionManager" property="transactionManager"/></property>
+              <property name="muxChannelFactory"><inject bean="jgroups.mux:name=Multiplexer"/></property>
+           </bean>
+        </property>
+        
         <property name="multiplexerStack">${jboss.multiplexer.stack:udp}</property>
 
-        <property name="transactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</property>
-        
         <!-- Valid isolation levels are 
                               SERIALIZABLE
                               REPEATABLE_READ (default)
@@ -42,7 +47,7 @@
         <property name="replQueueInterval">0</property>
 
         <!-- Max number of elements which trigger replication -->
-        <property name="replQueueMaxElements">0</property>
+        <property name="replQueueMaxElements">10</property>
 
         <!-- Name of cluster. Needs to be the same for all nodes in clusters, 
           in order to find each other -->
@@ -62,20 +67,200 @@
 
         <!-- Max number of milliseconds to wait for a lock acquisition -->
         <property name="lockAcquisitionTimeout">15000</property>
+        
+        <property name="exposeManagementStatistics">true</property>
 
     </bean>
     
    <!-- Now we use the above configuration to construct the cache itself -->
-   <bean name="HAPartitionCache" class="org.jboss.cache.jmx.CacheJmxWrapper">
+   <bean name="DefaultPartition-HAPartitionCache" class="org.jboss.cache.TreeCacheProxyImpl">
    
       <depends>jboss:service=Naming</depends>
-      <depends>jboss:service=TransactionManager</depends>
-      <depends>jgroups.mux:name=Multiplexer</depends>
       
-      <property name="configuration"><inject bean="HAPartitionCacheConfig"/></property>
-      <property name="mbeanServer"><inject bean="JMXKernel" property="mbeanServer"/></property>
-      <property name="cacheObjectName">jboss.cache:service=HAPartitionCache,partition=${jboss.partition.name:DefaultPartition}</property>
+      <constructor factoryClass="org.jboss.cache.factories.DefaultCacheFactory" factoryMethod="createCache">
+         <parameter class="org.jboss.cache.config.Configuration"><inject bean="DefaultPartition-HAPartitionCacheConfig"/></parameter>
+         <parameter class="boolean">false</parameter>
+      </constructor>
+      
+   </bean>
+    
+   <!-- Add a handle to the cache to JMX -->
+   <bean name="HAPartitionCacheJmxWrapper" class="org.jboss.cache.jmx.CacheJmxWrapper">
+   
+      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.cache:service=HAPartitionCache,partitionName=${jboss.partition.name:DefaultPartition}", exposedInterface=org.jboss.cache.jmx.CacheJmxWrapperMBean.class, registerDirectly=true)</annotation>
+      
+      <property name="cache"><inject bean="DefaultPartition-HAPartitionCache"/></property>
         
    </bean>
 
+   <!-- ==================================================================== -->
+   <!-- DistributedState Service, a legacy wrapper around JBoss Cache        -->
+   <!-- ==================================================================== -->
+
+   <bean name="DistributedState"
+   		 class="org.jboss.ha.framework.server.DistributedStateImpl">
+      
+      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=DistributedState,partitionName=${jboss.partition.name:DefaultPartition}", exposedInterface=org.jboss.ha.framework.server.DistributedStateImplMBean.class, registerDirectly=true)</annotation>
+      
+          
+      <property name="clusteredCache"><inject bean="DefaultPartition-HAPartitionCache"/></property>
+      
+   </bean>
+
+   <!-- ==================================================================== -->
+   <!-- Cluster Partition: defines cluster                                   -->
+   <!-- ==================================================================== -->
+
+   <bean name="HAPartition"
+   		 class="org.jboss.ha.framework.server.ClusterPartition">     
+   		 
+   	<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=${jboss.partition.name:DefaultPartition}", exposedInterface=org.jboss.ha.framework.server.ClusterPartitionMBean.class)</annotation>
+      
+   	<constructor>
+   	   <parameter>
+            <bean name="DefaultPartition-ClusterPartitionConfig" class="org.jboss.ha.framework.server.ClusterPartitionConfig">   
+               
+               <!-- ClusterPartition requires a Cache for state management -->
+               <property name="clusteredCache"><inject bean="DefaultPartition-HAPartitionCache"/></property>
+               
+               <property name="distributedState"><inject bean="DistributedState"/></property>
+                
+               <!-- Name of the partition being built -->
+               <property name="partitionName">${jboss.partition.name:DefaultPartition}</property>
+         
+               <!-- The address used to determine the node name -->
+               <property name="nodeAddress">${jboss.bind.address}</property>
+         
+               <!-- Inject the naming service port as an aid in creating a nodeUniqueId.  Not needed if nodeUniqueId is set -->
+               <property name="namingServicePort"><inject bean="jboss:service=Naming" property="port"/></property>
+               
+               <!-- Determine if deadlock detection is enabled -->
+               <property name="deadlockDetection">false</property>
+              
+               <!-- Max time (in ms) to wait for state transfer to complete. Increase for large states -->
+               <property name="stateTransferTimeout">30000</property>
+              
+               <!-- Max time (in ms) to wait for RPC calls to complete. -->
+               <property name="methodCallTimeout">60000</property>            
+               
+            </bean>
+         </parameter>
+      </constructor>
+      
+   </bean>
+   
+   
+   <!-- ==================================================================== -->
+   <!-- HA Session State Service for EJB2 SFSB                               -->
+   <!-- ==================================================================== -->
+
+   <bean name="HASessionState"
+   		 class="org.jboss.ha.hasessionstate.server.HASessionStateService">
+   	
+     <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=HASessionState", exposedInterface=org.jboss.ha.hasessionstate.server.HASessionStateServiceMBean.class, registerDirectly=true)</annotation>
+      	       
+     <depends>HAPartition</depends>
+      	 
+  	  <property name="clusterPartition"><inject name="HAPartition"/></property>
+      <!-- JNDI name under which the service is bound -->
+      <property name="jndiName">/HASessionState/Default</property>
+      <!-- Max delay before cleaning unreclaimed state.
+           Defaults to 30*60*1000 => 30 minutes -->
+      <property name="beanCleaningDelay">0</property>
+      
+   </bean>
+
+   <!-- ==================================================================== -->
+   <!-- HA JNDI                                                              -->
+   <!-- ==================================================================== -->
+
+   <bean name="HAJNDI" class="org.jboss.ha.jndi.HANamingService">
+   	
+   	<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=HAJNDI", exposedInterface=org.jboss.ha.jndi.HANamingServiceMBean.class, registerDirectly=true)</annotation>
+      
+      <depends>HAPartition</depends>
+      	       
+      <property name="clusterPartition"><inject name="HAPartition"/></property>
+      
+      <!-- Bind address of bootstrap and HA-JNDI RMI endpoints -->
+      <property name="bindAddress">${jboss.bind.address}</property>
+      <!-- Port on which the HA-JNDI stub is made available -->
+      <property name="port">1100</property>
+      <!-- RmiPort to be used by the HA-JNDI service once bound. 0 => auto. -->
+      <property name="rmiPort">1101</property>
+      <!-- Accept backlog of the bootstrap socket -->
+      <property name="backlog">50</property>
+      <!-- The thread pool service used to control the bootstrap and
+      auto discovery lookups -->
+      <property name="lookupPool"><inject bean="jboss.system:service=ThreadPool"/></property>
+
+      <!-- A flag to disable the auto discovery via multicast -->
+      <property name="discoveryDisabled">false</property>
+      <!-- Set the auto-discovery bootstrap multicast bind address. If not 
+      specified and a BindAddress is specified, the BindAddress will be used. -->
+      <property name="autoDiscoveryBindAddress">${jboss.bind.address}</property>
+      <!-- Multicast Address and group port used for auto-discovery -->
+      <property name="autoDiscoveryAddress">${jboss.partition.udpGroup:230.0.0.4}</property>
+      <property name="autoDiscoveryGroup">1102</property>
+      <!-- The TTL (time-to-live) for autodiscovery IP multicast packets -->
+      <property name="autoDiscoveryTTL">16</property>
+      <!-- The load balancing policy for HA-JNDI -->
+      <property name="loadBalancePolicy">org.jboss.ha.framework.interfaces.RoundRobin</property>
+
+      <!-- Client socket factory to be used for client-server
+           RMI invocations during JNDI queries
+      <property name="clientSocketFactory">custom</property>
+      -->
+      <!-- Server socket factory to be used for client-server
+           RMI invocations during JNDI queries
+      <property name="serverSocketFactory">custom</property>
+      -->
+   </bean>
+
+   <bean name="JRMPInvokerHA"
+         class="org.jboss.invocation.jrmp.server.JRMPInvokerHA">
+      
+      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=invoker,type=jrmpha", exposedInterface=org.jboss.invocation.jrmp.server.JRMPInvokerMBean.class, registerDirectly=true)</annotation>
+      
+      <depends>HAPartition</depends>
+         
+      <property name="serverAddress">${jboss.bind.address}</property>
+      <property name="RMIObjectPort">4447</property>
+      
+      <!--
+      <property name="RMIObjectPort">0</property>
+      <property name="RMIClientSocketFactory">custom</property>
+      <property name="RMIServerSocketFactory">custom</property>
+      -->
+   </bean>
+
+   <bean name="UnifiedInvokerHA"
+   		 class="org.jboss.invocation.unified.server.UnifiedInvokerHA">
+   		 
+      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=invoker,type=unifiedha", exposedInterface=org.jboss.system.ServiceMBean.class, registerDirectly=true)</annotation>
+         
+      <depends>jboss:service=TransactionManager</depends>
+      <depends>HAPartition</depends>
+      
+      <property name="connector"><inject bean="jboss.remoting:service=Connector,transport=socket"/></property>
+
+   </bean>
+
+   <!-- ==================================================================== -->
+   <!-- Distributed cache invalidation                                       -->
+   <!-- ==================================================================== -->
+
+   <bean name="JGCacheInvalidationBridge"
+   		 class="org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridge">
+   		 
+      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.cache:service=InvalidationBridge,type=JavaGroups", exposedInterface=org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridgeMBean.class, registerDirectly=true)</annotation>
+      
+      <depends>HAPartition</depends>
+         
+      <property name="clusterPartition"><inject name="HAPartition"/></property>
+      <property name="invalidationManager">jboss.cache:service=InvalidationManager</property>
+      <property name="bridgeName">DefaultJGBridge</property>
+      
+   </bean>
+   
 </deployment>




More information about the jboss-cvs-commits mailing list