You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/01/26 01:24:08 UTC

svn commit: r372378 - /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/DeploymentService.java

Author: gnodet
Date: Wed Jan 25 16:24:05 2006
New Revision: 372378

URL: http://svn.apache.org/viewcvs?rev=372378&view=rev
Log:
On startup , service units were initialized before component is initialized

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/DeploymentService.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/DeploymentService.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/DeploymentService.java?rev=372378&r1=372377&r2=372378&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/DeploymentService.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/DeploymentService.java Wed Jan 25 16:24:05 2006
@@ -68,10 +68,14 @@
     public void init(JBIContainer container) throws JBIException {
         this.container = container;
         this.environmentContext = container.getEnvironmentContext();
-        buildState();
         container.getManagementContext().registerSystemService(this, DeploymentServiceMBean.class);
     }
 
+    public void start() throws javax.jbi.JBIException {
+        buildState();
+        super.start();
+    }
+    
     public void shutDown() throws JBIException {
         super.shutDown();
         container.getManagementContext().unregisterMBean(this);