Project

General

Profile

« Previous | Next » 

Revision abce4859

Added by Cherian Mathew almost 9 years ago

CdmApplicationRemoteController : moved cdm model caching to start before application context init
CdmApplicationRemoteConfiguration : moved bean initialization from autowiring to getBean in getters for better performance
httpInvokerServiceClients.xml : changed init startegy for services to lazy init
CdmModelCacher : commented out logging

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/resources/eu/etaxonomy/cdm/httpInvokerServiceClients.xml
7 7
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
8 8

  
9 9

  
10
  <bean id="agentService" 
10
  <bean id="agentService" lazy-init="true" 
11 11
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
12 12
    <property name="serviceUrl">
13 13
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/agent.service</value>
......
21 21
    </property>
22 22
  </bean>
23 23

  
24
  <bean id="annotationService" 
24
  <bean id="annotationService" lazy-init="true" 
25 25
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
26 26
    <property name="serviceUrl">
27 27
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/annotation.service</value>
......
35 35
    </property>
36 36
  </bean>
37 37

  
38
  <bean id="auditeventService" 
38
  <bean id="auditeventService" lazy-init="true" 
39 39
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
40 40
    <property name="serviceUrl">
41 41
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/auditevent.service</value>
......
49 49
    </property>
50 50
  </bean>
51 51

  
52
  <bean id="classificationService" 
52
  <bean id="classificationService" lazy-init="true" 
53 53
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
54 54
    <property name="serviceUrl">
55 55
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/classification.service</value>
......
63 63
    </property>
64 64
  </bean>
65 65

  
66
  <bean id="collectionService" 
66
  <bean id="collectionService" lazy-init="true" 
67 67
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
68 68
    <property name="serviceUrl">
69 69
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/collection.service</value>
......
77 77
    </property>
78 78
  </bean>
79 79

  
80
  <bean id="commonService" 
80
  <bean id="commonService" lazy-init="true" 
81 81
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
82 82
    <property name="serviceUrl">
83 83
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/common.service</value>
......
91 91
    </property>
92 92
  </bean>
93 93

  
94
  <bean id="descriptionService" 
94
  <bean id="descriptionService" lazy-init="true" 
95 95
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
96 96
    <property name="serviceUrl">
97 97
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/description.service</value>
......
105 105
    </property>
106 106
  </bean>
107 107

  
108
  <bean id="editGeoService" 
108
  <bean id="editGeoService" lazy-init="true" 
109 109
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
110 110
    <property name="serviceUrl">
111 111
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/editgeo.service</value>
......
119 119
    </property>
120 120
  </bean>
121 121

  
122
  <bean id="featureNodeService" 
122
  <bean id="featureNodeService" lazy-init="true" 
123 123
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
124 124
    <property name="serviceUrl">
125 125
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/featurenode.service</value>
......
133 133
    </property>
134 134
  </bean>
135 135

  
136
  <bean id="featureTreeService" 
136
  <bean id="featureTreeService" lazy-init="true" 
137 137
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
138 138
    <property name="serviceUrl">
139 139
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/featuretree.service</value>
......
147 147
    </property>
148 148
  </bean>
149 149

  
150
  <bean id="groupService" 
150
  <bean id="groupService" lazy-init="true" 
151 151
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
152 152
    <property name="serviceUrl">
153 153
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/group.service</value>
......
161 161
    </property>
162 162
  </bean>
163 163

  
164
  <bean id="identificationKeyService" 
164
  <bean id="identificationKeyService" lazy-init="true" 
165 165
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
166 166
    <property name="serviceUrl">
167 167
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/identificationkey.service</value>
......
176 176
    </property>
177 177
  </bean>
178 178

  
179
  <bean id="locationService" 
179
  <bean id="locationService" lazy-init="true" 
180 180
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
181 181
    <property name="serviceUrl">
182 182
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/location.service</value>
......
190 190
    </property>
191 191
  </bean>
192 192

  
193
  <bean id="markerService" 
193
  <bean id="markerService" lazy-init="true" 
194 194
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
195 195
    <property name="serviceUrl">
196 196
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/marker.service</value>
......
204 204
    </property>
205 205
  </bean>
206 206

  
207
  <bean id="mediaService" 
207
  <bean id="mediaService" lazy-init="true" 
208 208
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
209 209
    <property name="serviceUrl">
210 210
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/media.service</value>
......
218 218
    </property>
219 219
  </bean>
220 220

  
221
  <bean id="nameService" 
221
  <bean id="nameService" lazy-init="true" 
222 222
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
223 223
    <property name="serviceUrl">
224 224
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/name.service</value>
......
232 232
    </property>
233 233
  </bean>
234 234

  
235
  <bean id="occurrenceService" 
235
  <bean id="occurrenceService" lazy-init="true" 
236 236
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
237 237
    <property name="serviceUrl">
238 238
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/occurrence.service</value>
......
246 246
    </property>
247 247
  </bean>
248 248

  
249
  <bean id="polytomousKeyNodeService" 
249
  <bean id="polytomousKeyNodeService" lazy-init="true" 
250 250
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
251 251
    <property name="serviceUrl">
252 252
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/polytomouskeynode.service</value>
......
261 261
    </property>
262 262
  </bean>
263 263

  
264
  <bean id="polytomousKeyService" 
264
  <bean id="polytomousKeyService" lazy-init="true" 
265 265
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
266 266
    <property name="serviceUrl">
267 267
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/polytomouskey.service</value>
......
275 275
    </property>
276 276
  </bean>
277 277

  
278
  <bean id="referenceService" 
278
  <bean id="referenceService" lazy-init="true" 
279 279
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
280 280
    <property name="serviceUrl">
281 281
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/reference.service</value>
......
289 289
    </property>
290 290
  </bean>
291 291

  
292
  <!-- <bean id="serviceService" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> 
292
  <!-- <bean id="serviceService" lazy-init="true" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> 
293 293
    <property name="serviceUrl"> <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/service.service</value> 
294 294
    </property> <property name="serviceInterface"> <value>eu.etaxonomy.cdm.api.service.IService</value> 
295 295
    </property> </bean> -->
296 296

  
297
  <bean id="taxonNodeService" 
297
  <bean id="taxonNodeService" lazy-init="true" 
298 298
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
299 299
    <property name="serviceUrl">
300 300
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/taxonnode.service</value>
......
308 308
    </property>
309 309
  </bean>
310 310

  
311
  <bean id="taxonService" 
311
  <bean id="taxonService" lazy-init="true" 
312 312
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
313 313
    <property name="serviceUrl">
314 314
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/taxon.service</value>
......
322 322
    </property>
323 323
  </bean>
324 324

  
325
  <bean id="termService" 
325
  <bean id="termService" lazy-init="true" 
326 326
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
327 327
    <property name="serviceUrl">
328 328
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/term.service</value>
......
335 335
    </property>
336 336
  </bean>
337 337

  
338
  <bean id="userService" 
338
  <bean id="userService" lazy-init="true" 
339 339
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
340 340
    <property name="serviceUrl">
341 341
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting-public/user.service</value>
......
349 349
    </property>
350 350
  </bean>
351 351

  
352
  <bean id="vocabularyService" 
352
  <bean id="vocabularyService" lazy-init="true" 
353 353
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
354 354
    <property name="serviceUrl">
355 355
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/vocabulary.service</value>
......
363 363
    </property>
364 364
  </bean>
365 365

  
366
  <bean id="workingSetService" 
366
  <bean id="workingSetService" lazy-init="true" 
367 367
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
368 368
    <property name="serviceUrl">
369 369
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/workingset.service</value>
......
377 377
    </property>
378 378
  </bean>
379 379

  
380
  <bean id="grantedAuthorityService" 
380
  <bean id="grantedAuthorityService" lazy-init="true" 
381 381
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
382 382
    <property name="serviceUrl">
383 383
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/grantedauthority.service</value>
......
392 392
    </property>
393 393
  </bean>
394 394

  
395
  <bean id="databaseService" 
395
  <bean id="databaseService" lazy-init="true" 
396 396
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
397 397
    <property name="serviceUrl">
398 398
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting-public/database.service</value>
......
406 406
    </property>
407 407
  </bean>
408 408

  
409
  <bean id="lsidAuthorityService" 
409
  <bean id="lsidAuthorityService" lazy-init="true" 
410 410
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
411 411
    <property name="serviceUrl">
412 412
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsidauthoruty.service</value>
......
421 421
    </property>
422 422
  </bean>
423 423

  
424
  <bean id="lsidMetadataService" 
424
  <bean id="lsidMetadataService" lazy-init="true" 
425 425
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
426 426
    <property name="serviceUrl">
427 427
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsidmetadata.service</value>
......
436 436
    </property>
437 437
  </bean>
438 438

  
439
  <bean id="lsiDataService" 
439
  <bean id="lsiDataService" lazy-init="true" 
440 440
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
441 441
    <property name="serviceUrl">
442 442
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/lsiddata.service</value>
......
465 465
<!--     </property> -->
466 466
<!--   </bean> -->
467 467

  
468
  <bean id="primerService" 
468
  <bean id="primerService" lazy-init="true" 
469 469
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
470 470
    <property name="serviceUrl">
471 471
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/primer.service</value>
......
480 480
    </property>
481 481
  </bean>
482 482

  
483
  <bean id="amplificationService" 
483
  <bean id="amplificationService" lazy-init="true" 
484 484
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
485 485
    <property name="serviceUrl">
486 486
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/amplification.service</value>
......
495 495
    </property>
496 496
  </bean>
497 497

  
498
  <bean id="sequenceService" 
498
  <bean id="sequenceService" lazy-init="true" 
499 499
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
500 500
    <property name="serviceUrl">
501 501
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/sequence.service</value>
......
510 510
    </property>
511 511
  </bean>
512 512

  
513
  <bean id="entityValidationService" 
513
  <bean id="entityValidationService" lazy-init="true" 
514 514
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
515 515
    <property name="serviceUrl">
516 516
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/entityvalidation.service</value>
......
525 525
    </property>
526 526
  </bean>
527 527

  
528
  <bean id="entityConstraintViolationService" 
528
  <bean id="entityConstraintViolationService" lazy-init="true" 
529 529
    class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean">
530 530
    <property name="serviceUrl">
531 531
      <value>http://${remoteServer}:${remotePort}/${remoteContext}/remoting/entityconstraintviolation.service</value>

Also available in: Unified diff