mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Split transactional EHCache configuration from entity and other EHCache configuration. This will allow a smoother transition to EHCache 1.2, which is to be released soon.
Added a deep cache tracer for EHCaches. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2364 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,14 +1,21 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||
|
||||
<!--
|
||||
Configuration of in-transaction caches along with the shared (cross-transaction) caches.
|
||||
The in-transaction caches do not share the same configuration as the shared caches.
|
||||
This is because the shared caches can support replication (EHCache 1.2), while the
|
||||
in-transaction caches must not use these features.
|
||||
-->
|
||||
<beans>
|
||||
|
||||
<!-- ==================================================== -->
|
||||
<!-- EH Cache Manager to produce in-transaction EH Caches -->
|
||||
<!-- ==================================================== -->
|
||||
|
||||
<bean name="ehCacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" >
|
||||
<bean name="transactionalEHCacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" >
|
||||
<property name="configLocation">
|
||||
<value>classpath:ehcache.xml</value>
|
||||
<value>classpath:ehcache-transactional.xml</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
@@ -42,7 +49,7 @@
|
||||
<ref bean="nullPermissionSharedCache" />
|
||||
</property>
|
||||
<property name="cacheManager" >
|
||||
<ref bean="ehCacheManager" />
|
||||
<ref bean="transactionalEHCacheManager" />
|
||||
</property>
|
||||
<!-- Eh cache area -->
|
||||
<property name="name">
|
||||
@@ -83,7 +90,7 @@
|
||||
<ref bean="userToAuthoritySharedCache" />
|
||||
</property>
|
||||
<property name="cacheManager" >
|
||||
<ref bean="ehCacheManager" />
|
||||
<ref bean="transactionalEHCacheManager" />
|
||||
</property>
|
||||
<!-- Eh cache area -->
|
||||
<property name="name">
|
||||
@@ -124,7 +131,7 @@
|
||||
<ref bean="permissionsAccessSharedCache" />
|
||||
</property>
|
||||
<property name="cacheManager" >
|
||||
<ref bean="ehCacheManager" />
|
||||
<ref bean="transactionalEHCacheManager" />
|
||||
</property>
|
||||
<!-- Eh cache area -->
|
||||
<property name="name">
|
||||
@@ -165,7 +172,7 @@
|
||||
<ref bean="nodeOwnerSharedCache" />
|
||||
</property>
|
||||
<property name="cacheManager" >
|
||||
<ref bean="ehCacheManager" />
|
||||
<ref bean="transactionalEHCacheManager" />
|
||||
</property>
|
||||
<!-- Eh cache area -->
|
||||
<property name="name">
|
||||
|
@@ -131,6 +131,23 @@
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- enable DEBUG for 'org.alfresco.repo.cache.EhCacheTracerJob' to activate -->
|
||||
<bean id="ehCacheTracerJob" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
|
||||
<property name="jobDetail">
|
||||
<bean id="ehCacheTracerJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
|
||||
<property name="jobClass">
|
||||
<value>org.alfresco.repo.cache.EhCacheTracerJob</value>
|
||||
</property>
|
||||
</bean>
|
||||
</property>
|
||||
<property name="startDelay">
|
||||
<value>3600000</value><!-- start after an hour -->
|
||||
</property>
|
||||
<property name="repeatInterval">
|
||||
<value>3600000</value><!-- repeat every hour -->
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Scheduled tasks -->
|
||||
<bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
|
||||
<property name="triggers">
|
||||
@@ -144,7 +161,9 @@
|
||||
<ref bean="ldapGroupTrigger" />
|
||||
<ref bean="ldapPeopleTrigger" />
|
||||
-->
|
||||
|
||||
<!--
|
||||
<ref bean="ehCacheTracerJob" />
|
||||
-->
|
||||
</list>
|
||||
</property>
|
||||
<property name="waitForJobsToCompleteOnShutdown">
|
||||
|
Reference in New Issue
Block a user