You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jg...@apache.org on 2006/02/04 02:33:18 UTC
svn commit: r374811 -
/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
Author: jgapuz
Date: Fri Feb 3 17:33:10 2006
New Revision: 374811
URL: http://svn.apache.org/viewcvs?rev=374811&view=rev
Log:
- registered AdminCommandsService to be able to use it.
Modified:
incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java?rev=374811&r1=374810&r2=374811&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/container/JBIContainer.java Fri Feb 3 17:33:10 2006
@@ -61,6 +61,7 @@
import org.apache.servicemix.jbi.framework.InstallationService;
import org.apache.servicemix.jbi.framework.LocalComponentConnector;
import org.apache.servicemix.jbi.framework.Registry;
+import org.apache.servicemix.jbi.framework.AdminCommandsService;
import org.apache.servicemix.jbi.management.BaseLifeCycle;
import org.apache.servicemix.jbi.management.ManagementContext;
import org.apache.servicemix.jbi.messaging.DeliveryChannelImpl;
@@ -99,6 +100,7 @@
protected InstallationService installationService = new InstallationService();
protected DeploymentService deploymentService = new DeploymentService();
protected AutoDeploymentService autoDeployService = new AutoDeploymentService();
+ protected AdminCommandsService adminCommandsService = new AdminCommandsService();
protected Registry registry = new Registry();
protected WorkManager workManager;
protected boolean isWorkManagerCreated;
@@ -378,7 +380,16 @@
public AutoDeploymentService getAutoDeploymentService() {
return autoDeployService;
}
-
+
+ /**
+ *
+ * @return the AdminCommandsService
+ */
+ public AdminCommandsService getAdminCommandsService() {
+ return adminCommandsService;
+ }
+
+
/**
* light weight initialization - default values for mbeanSErver, TransactionManager etc are null
*
@@ -412,7 +423,8 @@
installationService.init(this);
deploymentService.init(this);
autoDeployService.init(this);
-
+ adminCommandsService.init(this);
+
// register self with the ManagementContext
try {
managementContext.registerMBean(ManagementContext.getContainerObjectName(managementContext.getJmxDomainName(), getName()),
@@ -440,6 +452,7 @@
installationService.start();
deploymentService.start();
autoDeployService.start();
+ adminCommandsService.start();
super.start();
}
}
@@ -459,6 +472,7 @@
installationService.stop();
deploymentService.stop();
autoDeployService.stop();
+ adminCommandsService.stop();
super.stop();
}
}
@@ -476,7 +490,8 @@
environmentContext.shutDown();
installationService.shutDown();
deploymentService.shutDown();
- // shutdown the management context last, because it will close the mbean server
+ adminCommandsService.shutDown();
+ // shutdown the management context last, because it will close the mbean server
super.shutDown();
managementContext.unregisterMBean(this);
managementContext.shutDown();
@@ -1103,4 +1118,4 @@
public void setNotifyStatistics(boolean notifyStatistics) {
this.notifyStatistics = notifyStatistics;
}
-}
\ No newline at end of file
+}