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.15 by ajm, Fri Feb 23 16:34:26 2001 UTC vs.
Revision 1.18 by ajm, Fri Feb 23 16:38:03 2001 UTC

# Line 133 | Line 133 | public class ComponentManager {
133              Iterator i = componentsToStart.iterator();
134              while(i.hasNext()) {
135                  try {
136 <                    Component component = (Component) i.next();
136 >                    component = (Component) i.next();
137                      System.out.println(toString + ": starting component - " + component.toString());
138                      component.start();
139                      componentsToStart.remove(componentsToStart.indexOf(component));
# Line 150 | Line 150 | public class ComponentManager {
150              if (componentsToStart.size() > 0) {
151                  System.err.println(toString + ": WARNING One or more components failed to start correctly.");
152                  System.err.println(toString + ": Will try again in 5 seconds");
153 <                Thread.sleep(5000);
153 >                try {    
154 >                    Thread.sleep(5000);
155 >                } catch (InterruptedException e) {
156 >                    // we're not bothered
157 >                }
158              } else {
159                  tryAgain = false;
160              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines