ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/componentmanager/ComponentManager.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/componentmanager/ComponentManager.java (file contents):
Revision 1.18 by ajm, Fri Feb 23 16:38:03 2001 UTC vs.
Revision 1.20 by ajm, Fri Feb 23 17:21:22 2001 UTC

# Line 131 | Line 131 | public class ComponentManager {
131          Component component = null;
132          while(tryAgain) {
133              Iterator i = componentsToStart.iterator();
134 +            ArrayList failedComponents = new ArrayList();
135              while(i.hasNext()) {
136                  try {
137                      component = (Component) i.next();
138                      System.out.println(toString + ": starting component - " + component.toString());
139                      component.start();
139                    componentsToStart.remove(componentsToStart.indexOf(component));
140                  } catch (ComponentStartException e) {
141                      System.err.println(toString + ": ERROR starting component - " + component.toString());
142                      System.err.println(toString + ": component reports - " + e.getMessage());
# Line 145 | Line 145 | public class ComponentManager {
145                      System.err.println(toString + ": WARNING Component reported CORBA communications failure");
146                      System.err.println(toString + ": This could be because it can't communicate with components it needs.");
147                      System.err.println(toString + ": component reports - " + e2.getMessage());
148 +                    failedComponents.add(component);
149                  }
150              }
151              if (componentsToStart.size() > 0) {
# Line 158 | Line 159 | public class ComponentManager {
159              } else {
160                  tryAgain = false;
161              }
162 +            componentsToStart = failedComponents;
163          }
164                  
165              System.out.println(toString + ": running");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines