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; |