svnno****@sourc*****
svnno****@sourc*****
2008年 12月 10日 (水) 18:48:55 JST
Revision: 1603 http://svn.sourceforge.jp/view?root=pal&view=rev&rev=1603 Author: shinsuke Date: 2008-12-10 18:48:55 +0900 (Wed, 10 Dec 2008) Log Message: ----------- fixed config file for importing psml to db. Modified Paths: -------------- pal-portal/branches/pal-portal-1.x/installer/etc/database/import/assembly/import-page-manager.xml -------------- next part -------------- Modified: pal-portal/branches/pal-portal-1.x/installer/etc/database/import/assembly/import-page-manager.xml =================================================================== --- pal-portal/branches/pal-portal-1.x/installer/etc/database/import/assembly/import-page-manager.xml 2008-12-10 09:08:38 UTC (rev 1602) +++ pal-portal/branches/pal-portal-1.x/installer/etc/database/import/assembly/import-page-manager.xml 2008-12-10 09:48:55 UTC (rev 1603) @@ -18,6 +18,26 @@ --> <beans> + <bean id="cacheManager" + class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean"> + <!-- get it through the class path + <property name="configLocation" value="${applicationRoot}/WEB-INF/conf/ehcache.xml"/> + --> + </bean> + + <bean id="ehInternalImportPageFileCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean"> + <property name="cacheManager"> + <ref local="cacheManager" /> + </property> + <property name="cacheName" value="importPageFileCache" /> + </bean> + + <bean id="internalImportPageFileCache" class="org.apache.jetspeed.cache.impl.EhCacheImpl"> + <constructor-arg> + <ref bean="ehInternalImportPageFileCache" /> + </constructor-arg> + </bean> + <bean id="org.apache.jetspeed.page.PageManagerImpl" name="pageManagerImpl" init-method="init" @@ -157,13 +177,13 @@ <!-- Page File Cache --> <bean id="PageFileCache" class="org.apache.jetspeed.cache.file.FileCache" init-method="startFileScanner" destroy-method="stopFileScanner"> - <!-- Scan rate for changes in cached files on the file system --> + <!-- Internal cache --> <constructor-arg index="0"> - <value>10</value> + <ref bean="internalImportPageFileCache" /> </constructor-arg> - <!-- Cache size --> + <!-- Scan rate for changes in cached files on the file system --> <constructor-arg index="1"> - <value>100</value> + <value>10</value> </constructor-arg> </bean>