Revision f4142aa7
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/cdm/api/application/CdmApplicationRemoteController.java | ||
---|---|---|
25 | 25 |
|
26 | 26 |
import eu.etaxonomy.cdm.common.monitor.IProgressMonitor; |
27 | 27 |
import eu.etaxonomy.cdm.common.monitor.NullProgressMonitor; |
28 |
import eu.etaxonomy.taxeditor.remoting.cache.CdmModelCacher;
|
|
28 |
import eu.etaxonomy.taxeditor.remoting.cache.CdmRemoteCacheManager;
|
|
29 | 29 |
import eu.etaxonomy.taxeditor.remoting.source.ICdmRemoteSource; |
30 | 30 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionManager; |
31 | 31 |
|
... | ... | |
145 | 145 |
|
146 | 146 |
GenericApplicationContext applicationContext = new GenericApplicationContext(); |
147 | 147 |
|
148 |
int nTasks = 5;
|
|
148 |
int nTasks = 4;
|
|
149 | 149 |
|
150 | 150 |
progressMonitor.beginTask("Connecting to '" + remoteSource.getName() + "'", nTasks); |
151 | 151 |
|
... | ... | |
190 | 190 |
@Override |
191 | 191 |
protected void init(){ |
192 | 192 |
progressMonitor.subTask("Loading configuration ..."); |
193 |
// initialising the cdm model cache |
|
194 |
CdmRemoteCacheManager.getInstance(); |
|
195 |
// retrieving the application configuration |
|
193 | 196 |
configuration = (ICdmApplicationConfiguration)applicationContext.getBean("cdmApplicationRemoteConfiguration"); |
194 | 197 |
AbstractLazyInitializer.setConfiguration((CdmApplicationRemoteConfiguration)configuration); |
195 | 198 |
AbstractPersistentCollection.setConfiguration((CdmApplicationRemoteConfiguration)configuration); |
196 | 199 |
progressMonitor.worked(1); |
197 | 200 |
|
198 |
progressMonitor.subTask("Loading CDM config cache ..."); |
|
199 |
CdmModelCacher cmdmc = new CdmModelCacher(); |
|
200 |
cmdmc.cacheGetterFields(); |
|
201 |
progressMonitor.worked(1); |
|
202 |
|
|
203 | 201 |
progressMonitor.done(); |
204 | 202 |
} |
205 | 203 |
|
Also available in: Unified diff
cdmlib-ehcache : removed disk based cache manager since the hb config is now cached in memory
CdmApplicationRemoteController, CdmModelCacher, CdmRemoteCacheManager, CdmModelGetMethodCacherTest : running the hibernate config load in separate thread
CdmTransientEntityCacher, EntityCacherDebugResult, CdmStore, SessionsViewPart: refactoring
httpInvokerServiceClients.xml : removed lazy loading of beans