@@ -38,9 +38,6 @@ public class ConfigurationHandler extends JobListenerSupport {
38
38
@ Inject
39
39
private PersistenceService persistenceService ;
40
40
41
- @ Inject
42
- private OxdService oxdService ;
43
-
44
41
@ Inject
45
42
private ExtensionsManager extManager ;
46
43
@@ -156,31 +153,25 @@ public void jobToBeExecuted(JobExecutionContext context) {
156
153
computeAcrPluginMapping ();
157
154
computeCorsOrigins ();
158
155
159
- if (oxdService .initialize ()) {
160
- //Call to initialize should be followed by saving
161
- try {
162
- saveSettings ();
163
- setAppState (AppStateEnum .OPERATING );
164
- } catch (Exception e ) {
165
- logger .error (e .getMessage ());
166
- setAppState (AppStateEnum .FAIL );
167
- }
168
- if (appState .equals (AppStateEnum .OPERATING )) {
169
- logger .info ("=== WEBAPP INITIALIZED SUCCESSFULLY ===" );
170
- //Add some random seconds to gaps. This reduces the chance of timers running at the same time
171
- //in a multi node environment, which IMO it's somewhat safer
172
- int gap = Double .valueOf (Math .random () * 7 ).intValue ();
173
- scriptsReloader .init (1 + gap );
174
- syncSettingsTimer .activate (60 + gap );
175
- //statistics timer executes in a single node in theory...
176
- //statisticsTimer.activate(120 + gap);
177
- //plugin checker is not shared-state related
178
- pluginChecker .activate (5 );
179
- }
180
- } else {
181
- logger .warn ("oxd configuration could not be initialized." );
156
+ try {
157
+ saveSettings ();
158
+ setAppState (AppStateEnum .OPERATING );
159
+ } catch (Exception e ) {
160
+ logger .error (e .getMessage ());
182
161
setAppState (AppStateEnum .FAIL );
183
162
}
163
+ if (appState .equals (AppStateEnum .OPERATING )) {
164
+ logger .info ("=== WEBAPP INITIALIZED SUCCESSFULLY ===" );
165
+ //Add some random seconds to gaps. This reduces the chance of timers running at the same time
166
+ //in a multi node environment, which IMO it's somewhat safer
167
+ int gap = Double .valueOf (Math .random () * 7 ).intValue ();
168
+ scriptsReloader .init (1 + gap );
169
+ syncSettingsTimer .activate (60 + gap );
170
+ //statistics timer executes in a single node in theory...
171
+ //statisticsTimer.activate(120 + gap);
172
+ //plugin checker is not shared-state related
173
+ pluginChecker .activate (5 );
174
+ }
184
175
}
185
176
186
177
} catch (Exception e ) {
0 commit comments