[Jboss-cvs] JBossAS SVN: r56865 - trunk/cluster/src/main/org/jboss/ha/framework/server
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Sep 14 16:34:00 EDT 2006
Author: bstansberry at jboss.com
Date: 2006-09-14 16:34:00 -0400 (Thu, 14 Sep 2006)
New Revision: 56865
Modified:
trunk/cluster/src/main/org/jboss/ha/framework/server/ClusterPartition.java
Log:
[JBAS-3656] Disconnect HAPartition channel upon failure in startService()
Modified: trunk/cluster/src/main/org/jboss/ha/framework/server/ClusterPartition.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/framework/server/ClusterPartition.java 2006-09-14 20:33:19 UTC (rev 56864)
+++ trunk/cluster/src/main/org/jboss/ha/framework/server/ClusterPartition.java 2006-09-14 20:34:00 UTC (rev 56865)
@@ -325,9 +325,18 @@
}
channel.connect(partitionName);
- partition.startPartition();
-
- log.debug("Started ClusterPartition: " + partitionName);
+ try
+ {
+ partition.startPartition();
+
+ log.debug("Started ClusterPartition: " + partitionName);
+ }
+ catch (Exception e)
+ {
+ log.debug("Caught exception after channel connected; closing channel -- " + e.getLocalizedMessage());
+ channel.disconnect();
+ throw e;
+ }
}
protected void stopService() throws Exception
More information about the jboss-cvs-commits
mailing list