Fix AR-2090

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8308 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-02-18 13:16:07 +00:00
parent ee7843b2f1
commit f8c295f44e
3 changed files with 64 additions and 1 deletions

View File

@@ -619,4 +619,40 @@
</property>
</bean>
<!-- ===================================== -->
<!-- Web Scripts Caches -->
<!-- ===================================== -->
<!-- The cross-transaction shared cache for In-Memory WebScripts Registry -->
<bean name="webScriptsRegistrySharedCache" class="org.alfresco.repo.cache.EhCacheAdapter">
<property name="cache">
<bean class="org.springframework.cache.ehcache.EhCacheFactoryBean" >
<property name="cacheManager">
<ref bean="internalEHCacheManager" />
</property>
<property name="cacheName">
<value>org.alfresco.cache.webScriptsRegistryCache</value>
</property>
</bean>
</property>
</bean>
<!-- The transactional cache for In-Memory WebScripts Registry -->
<bean name="webScriptsRegistryCache" class="org.alfresco.repo.cache.TransactionalCache">
<property name="sharedCache">
<ref bean="webScriptsRegistrySharedCache" />
</property>
<property name="cacheManager" >
<ref bean="transactionalEHCacheManager" />
</property>
<property name="name">
<value>org.alfresco.webScriptsRegistryTransactionalCache</value>
</property>
<property name="maxCacheSize">
<value>10</value>
</property>
</bean>
</beans>

View File

@@ -427,4 +427,13 @@
overflowToDisk="false"
/>
<!-- Web Scripts Registry -->
<cache
name="org.alfresco.cache.webScriptsRegistryCache"
maxElementsInMemory="100"
eternal="true"
overflowToDisk="false"
/>
</ehcache>

View File

@@ -761,5 +761,23 @@
replicateAsynchronously = false"/>
</cache>
<!-- Web Scripts Registry -->
<cache
name="org.alfresco.cache.webScriptsRegistryCache"
maxElementsInMemory="100"
eternal="true"
overflowToDisk="false">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicatePuts = false,
replicateUpdates = true,
replicateRemovals = true,
replicateUpdatesViaCopy = false,
replicateAsynchronously = false"/>
</cache>
</ehcache>