[jboss-svn-commits] JBL Code SVN: r32650 - labs/jbossesb/branches/JBESB_4_7_CP/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Apr 26 06:42:50 EDT 2010
Author: tfennelly
Date: 2010-04-26 06:42:49 -0400 (Mon, 26 Apr 2010)
New Revision: 32650
Modified:
labs/jbossesb/branches/JBESB_4_7_CP/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc/EsbDeployment.java
labs/jbossesb/branches/JBESB_4_7_CP/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc/EsbDeploymentMBean.java
Log:
https://jira.jboss.org/jira/browse/JBESB-3284
EsbDeployment stop/start mbean functions do not restart listeners
Modified: labs/jbossesb/branches/JBESB_4_7_CP/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc/EsbDeployment.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_7_CP/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc/EsbDeployment.java 2010-04-26 10:28:27 UTC (rev 32649)
+++ labs/jbossesb/branches/JBESB_4_7_CP/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc/EsbDeployment.java 2010-04-26 10:42:49 UTC (rev 32650)
@@ -117,22 +117,28 @@
}
public void start() throws Exception
- {
- log.info("Starting ESB Deployment '" + deploymentName + "'");
-
+ {
if (controller == null)
{
+ log.info("Starting ESB Deployment '" + deploymentName + "'");
controller = Configuration.create(jbossEsbXml, new ObjectName(mbeanName), publishers, servlets);
controller.start();
}
}
+ public boolean isStarted() {
+ return (controller != null);
+ }
+
public void stop() throws Exception
- {
- log.info("Stopping '" + deploymentName + "'");
-
- ServicePublisher.removeServicePublishers(controller);
- controller.stop();
+ {
+ if (controller != null)
+ {
+ log.info("Stopping '" + deploymentName + "'");
+ ServicePublisher.removeServicePublishers(controller);
+ controller.stop();
+ controller = null;
+ }
}
public void destroy() throws Exception
Modified: labs/jbossesb/branches/JBESB_4_7_CP/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc/EsbDeploymentMBean.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_7_CP/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc/EsbDeploymentMBean.java 2010-04-26 10:28:27 UTC (rev 32649)
+++ labs/jbossesb/branches/JBESB_4_7_CP/product/rosetta/src/org/jboss/soa/esb/listeners/deployers/mc/EsbDeploymentMBean.java 2010-04-26 10:42:49 UTC (rev 32650)
@@ -35,6 +35,13 @@
void start() throws Exception;
/**
+ * Is the deployment started.
+ *
+ * @return True if the deployment is started, otherwise false.
+ */
+ boolean isStarted();
+
+ /**
* Stop a deployment.
*
* @throws Exception If an exeption occurs while stoping.
More information about the jboss-svn-commits
mailing list