Author: sgoeschl
Date: Tue Jul 29 07:46:39 2008
New Revision: 680717
URL: http://svn.apache.org/viewvc?rev=680717&view=rev
Log:
Using reconfiguration delay before reconfiguring the container
Modified:
turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/yaafi/framework/container/ServiceContainerImpl.java
Modified:
turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/yaafi/framework/container/ServiceContainerImpl.java
URL:
http://svn.apache.org/viewvc/turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/yaafi/framework/container/ServiceContainerImpl.java?rev=680717&r1=680716&r2=680717&view=diff
==============================================================================
---
turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/yaafi/framework/container/ServiceContainerImpl.java
(original)
+++
turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/yaafi/framework/container/ServiceContainerImpl.java
Tue Jul 29 07:46:39 2008
@@ -65,8 +65,8 @@
public class ServiceContainerImpl
implements ServiceContainer, ServiceConstants
{
- /** the timeout after getting a write lock for reconfiguration */
- private static final int RECONFIGURATION_DELAY = 0;
+ /** the timeout before reconfiguring the container or services */
+ private static final int RECONFIGURATION_DELAY = 2000;
/** The role configuration file to be used */
private String componentRolesLocation;
@@ -175,6 +175,8 @@
this.fallbackServiceManagerList = new ArrayList();
this.defaultInterceptorServiceList = new ArrayList();
+
+ this.reconfigurationDelay = RECONFIGURATION_DELAY;
}
/**
@@ -491,10 +493,6 @@
this.getLogger().debug("Disposing all services");
}
- // wait some time so
-
- this.waitForReconfiguration();
-
// decommision all servcies
this.decommisionAll( this.getServiceList() );