[Jboss-cvs] JBossAS SVN: r55358 - in branches/Branch_4_0/testsuite: imports/sections src/main/org/jboss/test/cluster/partition src/main/org/jboss/test/cluster/partition/test src/resources/cluster/partition

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Aug 6 08:45:13 EDT 2006


Author: bstansberry at jboss.com
Date: 2006-08-06 08:45:10 -0400 (Sun, 06 Aug 2006)
New Revision: 55358

Added:
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionState.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateException.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateTransfer.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateTransferMBean.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestClusterPartition.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestClusterPartitionMBean.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestHAPartition.java
   branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/test/BadStateTransferTestCase.java
   branches/Branch_4_0/testsuite/src/resources/cluster/partition/jboss-service.xml
Modified:
   branches/Branch_4_0/testsuite/imports/sections/cluster.xml
Log:
[JBAS-2950] Test that HAPartition start fails if state transfer does

Modified: branches/Branch_4_0/testsuite/imports/sections/cluster.xml
===================================================================
--- branches/Branch_4_0/testsuite/imports/sections/cluster.xml	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/imports/sections/cluster.xml	2006-08-06 12:45:10 UTC (rev 55358)
@@ -27,6 +27,15 @@
          </fileset>
       </jar>
 
+    <jar destfile="${build.lib}/badstatetransfer.sar">
+       <metainf dir="${build.resources}/cluster/partition">
+          <include name="jboss-service.xml"/>
+       </metainf>
+       <fileset dir="${build.classes}">
+          <include name="org/jboss/test/cluster/partition/*"/>
+       </fileset>
+    </jar>
+
       <!-- build httpsessionreplication.jar -->
       <war warfile="${build.lib}/http-sr.war"
          webxml="${build.resources}/cluster/http/web.xml">

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionState.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionState.java	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionState.java	2006-08-06 12:45:10 UTC (rev 55358)
@@ -0,0 +1,16 @@
+package org.jboss.test.cluster.partition;
+
+import java.io.IOException;
+import java.io.Serializable;
+
+public class BadHAPartitionState implements Serializable
+{
+   /** The serialVersionUID */
+   private static final long serialVersionUID = 0L;
+
+   private void readObject(java.io.ObjectInputStream in)
+         throws IOException, ClassNotFoundException
+   {
+      throw new BadHAPartitionStateException("BadHAPartitionState cannot be deserialized");
+   }
+}

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateException.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateException.java	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateException.java	2006-08-06 12:45:10 UTC (rev 55358)
@@ -0,0 +1,28 @@
+package org.jboss.test.cluster.partition;
+
+public class BadHAPartitionStateException extends RuntimeException
+{
+   /** The serialVersionUID */
+   private static final long serialVersionUID = 0L;
+
+   public BadHAPartitionStateException()
+   {
+      super();
+   }
+
+   public BadHAPartitionStateException(String message)
+   {
+      super(message);
+   }
+
+   public BadHAPartitionStateException(Throwable cause)
+   {
+      super(cause);
+   }
+
+   public BadHAPartitionStateException(String message, Throwable cause)
+   {
+      super(message, cause);
+   }
+
+}

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateTransfer.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateTransfer.java	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateTransfer.java	2006-08-06 12:45:10 UTC (rev 55358)
@@ -0,0 +1,57 @@
+package org.jboss.test.cluster.partition;
+
+import java.io.Serializable;
+
+import org.jboss.ha.framework.interfaces.HAPartition;
+import org.jboss.ha.framework.interfaces.HAPartition.HAPartitionStateTransfer;
+import org.jboss.ha.jmx.HAServiceMBeanSupport;
+
+public class BadHAPartitionStateTransfer 
+      extends HAServiceMBeanSupport 
+      implements HAPartitionStateTransfer, BadHAPartitionStateTransferMBean
+{   
+   private HAPartition haPartition;
+   private boolean returnState;
+
+   public Serializable getCurrentState()
+   {
+      if (returnState)
+         return new BadHAPartitionState();
+      
+      throw new BadHAPartitionStateException("Configured not to return state");
+   }
+
+   public void setCurrentState(Serializable newState)
+   {
+      // no-op
+   }
+
+   protected void setupPartition() throws Exception
+   {
+      if (haPartition == null)
+      {
+         super.setupPartition();
+         haPartition = getPartition();
+         haPartition.subscribeToStateTransferEvents(getServiceHAName(), this);
+      }
+   }
+
+   protected void createService() throws Exception
+   {
+      super.createService();
+      setupPartition();
+   }
+
+   public boolean getReturnState()
+   {
+      return returnState;
+   }
+
+   public void setReturnState(boolean returnState)
+   {
+      this.returnState = returnState;
+   }
+   
+   
+
+}

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateTransferMBean.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateTransferMBean.java	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/BadHAPartitionStateTransferMBean.java	2006-08-06 12:45:10 UTC (rev 55358)
@@ -0,0 +1,11 @@
+package org.jboss.test.cluster.partition;
+
+import org.jboss.ha.jmx.HAServiceMBean;
+
+public interface BadHAPartitionStateTransferMBean extends HAServiceMBean
+{
+   public boolean getReturnState();
+
+   public void setReturnState(boolean returnState);
+
+}

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestClusterPartition.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestClusterPartition.java	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestClusterPartition.java	2006-08-06 12:45:10 UTC (rev 55358)
@@ -0,0 +1,41 @@
+package org.jboss.test.cluster.partition;
+
+import org.jboss.ha.framework.server.ClusterPartition;
+import org.jboss.ha.framework.server.HAPartitionImpl;
+
+public class StartupTestClusterPartition 
+      extends ClusterPartition
+      implements StartupTestClusterPartitionMBean
+{
+   private StartupTestHAPartition startupPartition;
+
+   public StartupTestClusterPartition()
+   {
+      super();
+   }
+   
+   public Exception getSetStateException()
+   {
+      return startupPartition.getSetStateException();
+   }
+
+   public Exception getStartupException()
+   {
+      return startupPartition.getStartupException();
+   }
+
+   /**
+    * Extension point meant for test cases; instantiates the HAPartition.
+    * Test cases can instantiate their own subclass of HAPartition impl.
+    */
+   protected HAPartitionImpl createPartition() throws Exception
+   {
+      startupPartition = new StartupTestHAPartition(partitionName, channel, deadlock_detection, getServer());
+      startupPartition.setStateTransferTimeout(this.state_transfer_timeout);
+      startupPartition.setMethodCallTimeout(this.method_call_timeout);
+      return startupPartition;
+   }
+   
+   
+
+}

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestClusterPartitionMBean.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestClusterPartitionMBean.java	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestClusterPartitionMBean.java	2006-08-06 12:45:10 UTC (rev 55358)
@@ -0,0 +1,11 @@
+package org.jboss.test.cluster.partition;
+
+import org.jboss.ha.framework.server.ClusterPartitionMBean;
+
+public interface StartupTestClusterPartitionMBean extends ClusterPartitionMBean
+{
+   
+   Exception getStartupException();
+   Exception getSetStateException();
+
+}

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestHAPartition.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestHAPartition.java	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/StartupTestHAPartition.java	2006-08-06 12:45:10 UTC (rev 55358)
@@ -0,0 +1,62 @@
+package org.jboss.test.cluster.partition;
+
+import javax.management.MBeanServer;
+
+import org.jboss.ha.framework.server.HAPartitionImpl;
+import org.jgroups.JChannel;
+
+public class StartupTestHAPartition extends HAPartitionImpl
+{
+   private RuntimeException setStateException;
+   private Exception startupException;
+   
+   public StartupTestHAPartition(String partitionName, JChannel channel, boolean deadlock_detection, MBeanServer server)
+         throws Exception
+   {
+      super(partitionName, channel, deadlock_detection, server);
+   }
+
+   public StartupTestHAPartition(String partitionName, JChannel channel, boolean deadlock_detection) throws Exception
+   {
+      super(partitionName, channel, deadlock_detection);
+   }
+
+   public void setState(byte[] obj)
+   {
+      try
+      {
+         super.setState(obj);
+      }
+      catch (RuntimeException e)
+      {
+         setStateException = e;
+         throw e;
+      }
+   }
+
+   public void startPartition() throws Exception
+   {
+      try
+      {
+         super.startPartition();
+      }
+      catch (Exception e)
+      {
+         startupException = e;
+         throw e;
+      }
+   }
+
+   public RuntimeException getSetStateException()
+   {
+      return setStateException;
+   }
+
+   public Exception getStartupException()
+   {
+      return startupException;
+   }
+   
+   
+   
+}

Added: branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/test/BadStateTransferTestCase.java
===================================================================
--- branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/test/BadStateTransferTestCase.java	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/src/main/org/jboss/test/cluster/partition/test/BadStateTransferTestCase.java	2006-08-06 12:45:10 UTC (rev 55358)
@@ -0,0 +1,87 @@
+package org.jboss.test.cluster.partition.test;
+
+import javax.management.ObjectName;
+
+import junit.framework.Test;
+
+import org.jboss.jmx.adaptor.rmi.RMIAdaptor;
+import org.jboss.test.JBossClusteredTestCase;
+import org.jboss.test.cluster.partition.BadHAPartitionStateException;
+
+public class BadStateTransferTestCase extends JBossClusteredTestCase
+{
+
+   public BadStateTransferTestCase(String name)
+   {
+      super(name);
+   }        
+
+   public static Test suite() throws Exception
+   {
+      Test t1 = JBossClusteredTestCase.getDeploySetup(BadStateTransferTestCase.class, "badstatetransfer.sar");
+      return t1;
+   } 
+
+   protected void setUp() throws Exception
+   {
+      super.setUp();
+   }
+
+   protected void tearDown() throws Exception
+   {
+      super.tearDown();
+   }
+   
+   public void testFailedStateProvider() throws Exception
+   {
+      RMIAdaptor[] adaptors = getAdaptors();
+      
+      ObjectName partition = new ObjectName("jboss:service=BadProviderPartition");
+      
+      Exception e = (Exception) adaptors[1].getAttribute(partition, "StartupException");      
+
+      assertNotNull("Partition caught exception", e);
+      
+      Throwable parent = e;
+      Throwable cause = e.getCause();
+      while (cause != null)
+      {
+         parent = cause;
+         cause = parent.getCause();
+      }
+      
+      assertTrue("Correct type of Exception caught", parent instanceof IllegalStateException);
+   }
+
+   public void testBadStateIntegration() throws Exception
+   {
+      RMIAdaptor[] adaptors = getAdaptors();
+      
+      ObjectName partition = new ObjectName("jboss:service=BadStatePartition");
+      
+      Exception e = (Exception) adaptors[1].getAttribute(partition, "StartupException");
+
+      assertNotNull("Partition caught exception", e);
+      
+      Throwable parent = e;
+      Throwable cause = e.getCause();
+      while (cause != null)
+      {
+         parent = cause;
+         cause = parent.getCause();
+      }
+      
+      assertTrue("Correct type of Exception caught", parent instanceof BadHAPartitionStateException);
+   }
+
+   /**
+    * In this subclass this is a no-op because we are deliberately
+    * deploying a sar that will fail in deployment
+    */
+   public void testServerFound() throws Exception
+   {
+      // do nothing
+   }
+   
+   
+}

Added: branches/Branch_4_0/testsuite/src/resources/cluster/partition/jboss-service.xml
===================================================================
--- branches/Branch_4_0/testsuite/src/resources/cluster/partition/jboss-service.xml	2006-08-06 12:45:08 UTC (rev 55357)
+++ branches/Branch_4_0/testsuite/src/resources/cluster/partition/jboss-service.xml	2006-08-06 12:45:10 UTC (rev 55358)
@@ -0,0 +1,203 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Sample Clustering Service Configuration                              -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<server>
+
+   <!-- ==================================================================== -->
+   <!-- Partition used for testing failure to receive state                  -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.test.cluster.partition.StartupTestClusterPartition"
+      name="jboss:service=BadProviderPartition">      
+
+      <!-- Inject the JGroups multiplexed channel into the ClusterPartition service -->
+      <!-- comment out to disable multiplexer
+      <depends optional-attribute-name="Multiplexer"
+         proxy-type="attribute">jgroups.mux:name=Multiplexer</depends>
+      <attribute name="MultiplexerStack">fc-fast-minimalthreads</attribute>
+      --> 
+      
+      <!-- Name of the partition being built -->
+      <attribute name="PartitionName">BadProviderPartition</attribute>
+
+      <!-- The address used to determine the node name -->
+      <attribute name="NodeAddress">${jboss.bind.address}</attribute>
+
+      <!-- Determine if deadlock detection is enabled -->
+      <attribute name="DeadlockDetection">False</attribute>
+     
+      <!-- Keep this timeout short -->
+      <attribute name="StateTransferTimeout">2000</attribute>
+
+      <!-- The JGroups protocol configuration -->
+      <attribute name="PartitionConfig">
+         <!--
+         The default UDP stack:
+         - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
+         appropriate NIC IP address, e.g bind_addr="192.168.0.2".
+         - On Windows machines, because of the media sense feature being broken with multicast
+         (even after disabling media sense) set the UDP protocol's loopback attribute to true
+         -->
+         <Config>
+            <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}" mcast_port="22222"
+               ip_ttl="8" ip_mcast="true"
+               mcast_send_buf_size="800000" mcast_recv_buf_size="150000"
+               ucast_send_buf_size="800000" ucast_recv_buf_size="150000"
+               loopback="false"/>
+            <PING timeout="2000" num_initial_members="3"
+               up_thread="true" down_thread="true"/>
+            <MERGE2 min_interval="10000" max_interval="20000"/>
+            <FD_SOCK down_thread="false" up_thread="false"/>
+            <FD shun="true" up_thread="true" down_thread="true"
+               timeout="20000" max_tries="5"/>
+            <VERIFY_SUSPECT timeout="3000" num_msgs="3"
+               up_thread="true" down_thread="true"/>
+            <pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800"
+               max_xmit_size="8192"
+               up_thread="true" down_thread="true"/>
+            <UNICAST timeout="300,600,1200,2400,4800" window_size="100" min_threshold="10"
+               down_thread="true"/>
+            <pbcast.STABLE desired_avg_gossip="20000"
+               up_thread="true" down_thread="true"/>
+            <FRAG frag_size="8192"
+               down_thread="true" up_thread="true"/>
+            <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
+               shun="true" print_local_addr="true"/>
+            <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
+         </Config>
+
+         <!-- Alternate TCP stack: customize it for your environment, change bind_addr and initial_hosts -->
+         <!--
+         <Config>
+            <TCP bind_addr="thishost" start_port="7800" loopback="true"/>
+            <TCPPING initial_hosts="thishost[7800],otherhost[7800]" port_range="3" timeout="3500"
+               num_initial_members="3" up_thread="true" down_thread="true"/>
+            <MERGE2 min_interval="5000" max_interval="10000"/>
+            <FD_SOCK down_thread="false" up_thread="false"/>
+            <FD shun="true" up_thread="true" down_thread="true"
+               timeout="20000" max_tries="5"/>
+            <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
+            <pbcast.NAKACK down_thread="true" up_thread="true" gc_lag="100"
+               retransmit_timeout="3000"/>
+            <pbcast.STABLE desired_avg_gossip="20000" down_thread="false" up_thread="false" />
+            <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="false"
+               print_local_addr="true" down_thread="true" up_thread="true"/>
+            <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
+         </Config>
+         -->
+      </attribute>
+
+   </mbean>
+   
+   <mbean code="org.jboss.test.cluster.partition.BadHAPartitionStateTransfer"
+      name="jboss.test:service=BadHAPartitionStateTransfer,returnState=false">
+      
+      <depends optional-attribute-name="ClusterPartition"
+         proxy-type="attribute">jboss:service=BadProviderPartition</depends>
+         
+      <attribute name="ReturnState">false</attribute>
+      
+   </mbean>
+
+   <!-- ==================================================================== -->
+   <!-- Partition used for testing failure to integrate state                -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.test.cluster.partition.StartupTestClusterPartition"
+      name="jboss:service=BadStatePartition">      
+
+      <!-- Inject the JGroups multiplexed channel into the ClusterPartition service -->
+      <!-- comment out to disable multiplexer
+      <depends optional-attribute-name="Multiplexer"
+         proxy-type="attribute">jgroups.mux:name=Multiplexer</depends>
+      <attribute name="MultiplexerStack">fc-fast-minimalthreads</attribute>
+      -->
+      
+      <!-- Name of the partition being built -->
+      <attribute name="PartitionName">BadStatePartition</attribute>
+
+      <!-- The address used to determine the node name -->
+      <attribute name="NodeAddress">${jboss.bind.address}</attribute>
+
+      <!-- Determine if deadlock detection is enabled -->
+      <attribute name="DeadlockDetection">False</attribute>
+     
+      <!-- Keep this timeout short -->
+      <attribute name="StateTransferTimeout">2000</attribute>
+
+      <!-- The JGroups protocol configuration -->
+      <attribute name="PartitionConfig">
+         <!--
+         The default UDP stack:
+         - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
+         appropriate NIC IP address, e.g bind_addr="192.168.0.2".
+         - On Windows machines, because of the media sense feature being broken with multicast
+         (even after disabling media sense) set the UDP protocol's loopback attribute to true
+         -->
+         <Config>
+            <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}" mcast_port="33333"
+               ip_ttl="8" ip_mcast="true"
+               mcast_send_buf_size="800000" mcast_recv_buf_size="150000"
+               ucast_send_buf_size="800000" ucast_recv_buf_size="150000"
+               loopback="false"/>
+            <PING timeout="2000" num_initial_members="3"
+               up_thread="true" down_thread="true"/>
+            <MERGE2 min_interval="10000" max_interval="20000"/>
+            <FD_SOCK down_thread="false" up_thread="false"/>
+            <FD shun="true" up_thread="true" down_thread="true"
+               timeout="20000" max_tries="5"/>
+            <VERIFY_SUSPECT timeout="3000" num_msgs="3"
+               up_thread="true" down_thread="true"/>
+            <pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800"
+               max_xmit_size="8192"
+               up_thread="true" down_thread="true"/>
+            <UNICAST timeout="300,600,1200,2400,4800" window_size="100" min_threshold="10"
+               down_thread="true"/>
+            <pbcast.STABLE desired_avg_gossip="20000"
+               up_thread="true" down_thread="true"/>
+            <FRAG frag_size="8192"
+               down_thread="true" up_thread="true"/>
+            <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
+               shun="true" print_local_addr="true"/>
+            <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
+         </Config>
+
+         <!-- Alternate TCP stack: customize it for your environment, change bind_addr and initial_hosts -->
+         <!--
+         <Config>
+            <TCP bind_addr="thishost" start_port="7800" loopback="true"/>
+            <TCPPING initial_hosts="thishost[7800],otherhost[7800]" port_range="3" timeout="3500"
+               num_initial_members="3" up_thread="true" down_thread="true"/>
+            <MERGE2 min_interval="5000" max_interval="10000"/>
+            <FD_SOCK down_thread="false" up_thread="false"/>
+            <FD shun="true" up_thread="true" down_thread="true"
+               timeout="20000" max_tries="5"/>
+            <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
+            <pbcast.NAKACK down_thread="true" up_thread="true" gc_lag="100"
+               retransmit_timeout="3000"/>
+            <pbcast.STABLE desired_avg_gossip="20000" down_thread="false" up_thread="false" />
+            <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="false"
+               print_local_addr="true" down_thread="true" up_thread="true"/>
+            <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
+         </Config>
+         -->
+      </attribute>
+
+   </mbean>
+   
+   <mbean code="org.jboss.test.cluster.partition.BadHAPartitionStateTransfer"
+      name="jboss.test:service=BadHAPartitionStateTransfer,returnState=true">
+      
+      <depends optional-attribute-name="ClusterPartition"
+         proxy-type="attribute">jboss:service=BadStatePartition</depends>
+         
+      <attribute name="ReturnState">true</attribute>
+      
+   </mbean>
+
+</server>




More information about the jboss-cvs-commits mailing list