[jboss-cvs] JBossAS SVN: r111699 - branches/JBPAPP_5_1_0_Final_JBPAPP-6797/cluster/src/main/org/jboss/ha/jmx.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jun 30 17:50:57 EDT 2011
Author: dereed
Date: 2011-06-30 17:50:57 -0400 (Thu, 30 Jun 2011)
New Revision: 111699
Modified:
branches/JBPAPP_5_1_0_Final_JBPAPP-6797/cluster/src/main/org/jboss/ha/jmx/AbstractHAServiceMBeanSupport.java
Log:
[JBPAPP-6802] Port JBPAPP-6797 to EAP 5.1
Modified: branches/JBPAPP_5_1_0_Final_JBPAPP-6797/cluster/src/main/org/jboss/ha/jmx/AbstractHAServiceMBeanSupport.java
===================================================================
--- branches/JBPAPP_5_1_0_Final_JBPAPP-6797/cluster/src/main/org/jboss/ha/jmx/AbstractHAServiceMBeanSupport.java 2011-06-30 17:51:08 UTC (rev 111698)
+++ branches/JBPAPP_5_1_0_Final_JBPAPP-6797/cluster/src/main/org/jboss/ha/jmx/AbstractHAServiceMBeanSupport.java 2011-06-30 21:50:57 UTC (rev 111699)
@@ -50,6 +50,7 @@
implements HAServiceMBean, HAService<Notification>, EventFactory<Notification>, EventFacility<Notification>
{
private final S service = this.createHAService();
+ private ClusterPartitionMBean clusterPartition;
private volatile boolean sendLocalLifecycleNotifications = true;
private volatile boolean sendRemoteLifecycleNotifications = true;
@@ -84,7 +85,7 @@
{
if ((this.getState() != STARTED) && (this.getState() != STARTING))
{
- this.service.setHAPartition(clusterPartition.getHAPartition());
+ this.clusterPartition = clusterPartition;
}
}
@@ -225,6 +226,8 @@
protected void setupPartition() throws Exception
{
// method no longer used by base implementation
+ if ( clusterPartition != null )
+ this.service.setHAPartition(clusterPartition.getHAPartition());
}
@SuppressWarnings("unchecked")
More information about the jboss-cvs-commits
mailing list