cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Poetz <>
Subject Changes in cocoon-store-impl
Date Thu, 05 Apr 2007 08:41:37 GMT

As discusses with Ard and Peter (, I 
patched EHDefaultStore and MRUMemoryStore:

<action dev="reinhard" type="fix">
   MRUMemoryStore registers at StoreJanitor only in that case, if StoreJanitor
   is set as dependency. Assuming that in many cases the MRUMemoryStore is
   used for often requested resources like compiled XSLTTemplates or i18n 
resource bundles,
   it doesn't make sense to remove them as most probably they will be added
   within one of the next requests hiting Cocoon. Find more information
<action dev="reinhard" type="add">
   Expose all configuration properties that EHCache provides via setter methods.
   Using them, EHDefaultStore can be completly configured in the Spring bean
   definition. This allows setting maxElementsInMemory, memoryStoreEvictionPolicy,
   overflowToDisk, diskStorePath, eternal, timeToLiveSeconds, timeToIdleSeconds,
   diskPersistent, diskExpiryThreadIntervalSeconds, registeredEventListeners,
   bootstrapCacheLoader, maxElementsOnDisk. See the 1.2.4 constructor at for
<action dev="reinhard" type="fix">
   EHDefaultStore doesn't register at StoreJanitor anymore. The usage of
   StoreJanitor to remove elements from EHDefaultStore was contra-productive,
   because EHCache provides its own invalidation mechanisms which are more
   sophisticated than the removal of random items. Find more information
<action dev="reinhard" type="update">
   Make the maximum number of disk objects configureable. The default value
   is 50000.

Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}


View raw message