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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jan 31 17:31:37 EST 2008


Author: bstansberry at jboss.com
Date: 2008-01-31 17:31:37 -0500 (Thu, 31 Jan 2008)
New Revision: 69514

Added:
   trunk/cluster/src/etc/ha-legacy-service.xml
   trunk/cluster/src/etc/hajndi-service.xml
Log:
[JBAS-5193] Separate HAPartition deployment from other cluster services
[JBAS-5195] Convert HA-JNDI and HA Detached invokers back to mbeans

Added: trunk/cluster/src/etc/ha-legacy-service.xml
===================================================================
--- trunk/cluster/src/etc/ha-legacy-service.xml	                        (rev 0)
+++ trunk/cluster/src/etc/ha-legacy-service.xml	2008-01-31 22:31:37 UTC (rev 69514)
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!-- High Availability for legacy services (e.g. EJB2)                     -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<server>
+
+   <!-- ==================================================================== -->
+   <!-- HA Detached Invoker using JRMP for transport                         -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.invocation.jrmp.server.JRMPInvokerHA"
+      name="jboss:service=invoker,type=jrmpha">
+          
+      <depends>jboss:service=TransactionManager</depends>
+      <depends>HAPartition</depends>
+      
+      <attribute name="ServerAddress">${jboss.bind.address}</attribute>
+      <attribute name="RMIObjectPort">4447</attribute>
+      
+      <!--
+      <attribute name="RMIObjectPort">0</attribute>
+      <attribute name="RMIClientSocketFactory">custom</attribute>
+      <attribute name="RMIServerSocketFactory">custom</attribute>
+      -->
+   </mbean>
+
+   <!-- ==================================================================== -->
+   <!-- HA Detached Invoker using pooled socket-based transport              -->
+   <!-- ==================================================================== -->
+
+   <mbean name="jboss:service=invoker,type=pooledha"
+          code="org.jboss.invocation.pooled.server.PooledInvokerHA">
+          
+      <depends>jboss:service=TransactionManager</depends>
+      <depends>HAPartition</depends>
+      
+      <attribute name="NumAcceptThreads">1</attribute>
+      <attribute name="MaxPoolSize">300</attribute>
+      <attribute name="ClientMaxPoolSize">300</attribute>
+      <attribute name="SocketTimeout">60000</attribute>
+      <attribute name="ServerBindAddress">${jboss.bind.address}</attribute>
+      <attribute name="ServerBindPort">4448</attribute>
+      <attribute name="ClientConnectAddress">${jboss.bind.address}</attribute>
+      <attribute name="ClientConnectPort">0</attribute>
+      <attribute name="EnableTcpNoDelay">false</attribute>
+      <attribute name="TransactionManagerService">jboss:service=TransactionManager</attribute>
+
+   </mbean>
+
+   <!-- ==================================================================== -->
+   <!-- HA Detached Invoker using JBoss Remoting for transport               -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.invocation.unified.server.UnifiedInvokerHA"
+      name="jboss:service=invoker,type=unifiedha">
+      
+      <depends>jboss:service=TransactionManager</depends>       
+      <depends>HAPartition</depends>
+      
+      <attribute name="Connector"><inject bean="jboss.remoting:service=Connector,transport=socket"/></attribute>
+   </mbean>
+   
+   <!-- ==================================================================== -->
+   <!-- HA Session State Service for EJB2 SFSBs                              -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.ha.hasessionstate.server.HASessionStateService"
+      name="jboss:service=HASessionState">
+      
+      <!--  Partition used for group RPCs -->
+      <attribute name="HAPartition"><inject bean="HAPartition"/></attribute>
+      
+      <!-- JNDI name under which the service is bound -->
+      <attribute name="JndiName">/HASessionState/Default</attribute>
+      <!-- Max delay before cleaning unreclaimed state.
+           Defaults to 30*60*1000 => 30 minutes -->
+      <attribute name="BeanCleaningDelay">0</attribute>
+      
+   </mbean>
+
+   <!-- ==================================================================== -->
+   <!-- Distributed EJB2 entity cache invalidation                           -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridge"
+      name="jboss.cache:service=InvalidationBridge,type=JavaGroups">
+      
+      <!--  Partition used for group RPCs -->
+      <attribute name="HAPartition"><inject bean="HAPartition"/></attribute>
+      <attribute name="InvalidationManager"><inject bean="jboss.cache:service=InvalidationManager"/></attribute>
+      <attribute name="BridgeName">DefaultJGBridge</attribute>
+      
+   </mbean>
+
+</server>

Added: trunk/cluster/src/etc/hajndi-service.xml
===================================================================
--- trunk/cluster/src/etc/hajndi-service.xml	                        (rev 0)
+++ trunk/cluster/src/etc/hajndi-service.xml	2008-01-31 22:31:37 UTC (rev 69514)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  HA-JNDI Service Configuration                                        -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<server>
+   
+   <mbean code="org.jboss.ha.jndi.HANamingService"
+      name="jboss:service=HAJNDI">      
+      
+      <!-- The partition used for group RPCs to find locally bound objects -->
+      <attribute name="HAPartition"><inject bean="HAPartition"/></attribute>
+      <!-- The cache for storing the replicated tree  -->
+      <attribute name="ClusteredCache"><inject bean="DefaultPartition-HAPartitionCache" property="cache"/></attribute>
+      <!-- The thread pool used to control the bootstrap and auto discovery lookups -->
+      <attribute name="LookupPool"><inject bean="jboss.system:service=ThreadPool"/></attribute>
+      
+      <!-- Bind address of bootstrap and HA-JNDI RMI endpoints -->
+      <attribute name="BindAddress">${jboss.bind.address}</attribute>
+      <!-- Port on which the HA-JNDI stub is made available -->
+      <attribute name="Port">1100</attribute>
+      <!-- RmiPort to be used by the HA-JNDI service once bound. 0 => auto. -->
+      <attribute name="RmiPort">1101</attribute>
+      <!-- Accept backlog of the bootstrap socket -->
+      <attribute name="Backlog">50</attribute>
+
+      <!-- A flag to disable the auto discovery via multicast -->
+      <attribute name="DiscoveryDisabled">false</attribute>
+      <!-- Set the auto-discovery bootstrap multicast bind address. If not 
+      specified and a BindAddress is specified, the BindAddress will be used. -->
+      <attribute name="AutoDiscoveryBindAddress">${jboss.bind.address}</attribute>
+      <!-- Multicast Address and group port used for auto-discovery -->
+      <attribute name="AutoDiscoveryAddress">${jboss.partition.udpGroup:230.0.0.4}</attribute>
+      <attribute name="AutoDiscoveryGroup">1102</attribute>
+      <!-- The TTL (time-to-live) for autodiscovery IP multicast packets -->
+      <attribute name="AutoDiscoveryTTL">16</attribute>
+      <!-- The load balancing policy for HA-JNDI -->
+      <attribute name="LoadBalancePolicy">org.jboss.ha.framework.interfaces.RoundRobin</attribute>
+
+      <!-- Client socket factory to be used for client-server
+           RMI invocations during JNDI queries
+      <attribute name="ClientSocketFactory">custom</attribute>
+      -->
+      <!-- Server socket factory to be used for client-server
+           RMI invocations during JNDI queries
+      <attribute name="ServerSocketFactory">custom</attribute>
+      -->
+   </mbean>
+
+</server>




More information about the jboss-cvs-commits mailing list