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.13 by ajm, Fri Feb 23 16:26:14 2001 UTC vs.
Revision 1.14 by ajm, Fri Feb 23 16:30:37 2001 UTC

# Line 133 | Line 133 | public class ComponentManager {
133              Iterator i = componentsToStart.iterator();
134              while(i.hasNext()) {
135                  try {
136 <                    component = (Component) i.next();
136 >                    Component component = (Component) i.next();
137                      System.out.println(toString + ": starting component - " + component.toString());
138                      component.start();
139                      componentsToStart.remove(componentsToStart.indexOf(component));
140                  } catch (ComponentStartException e) {
141 <                    System.err.println(toString + ": ERROR starting component - " + componentName);
141 >                    System.err.println(toString + ": ERROR starting component - " + component.toString());
142                      System.err.println(toString + ": component reports - " + e.getMessage());
143                      System.exit(1);
144 <                } catch(ComponentCORBAExcetpion e2) {
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.");
144 >                } catch(ComponentCORBAException e2) {
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                  }
149              }
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");
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);
154              } else {
155                  tryAgain = false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines