1
我正在整合spring3.2 + ehcache + bigmemory go。Spring + ehcache + bigmemory go整合
首先,我沒有承認什麼是「將BigMemory Go許可證密鑰文件保存到BigMemory Go主目錄」。在glassfish上部署的java Web應用程序中,我的BigMemory Go主目錄是什麼。
請求幫助。
其次,我得到這個錯誤: 嵌套的例外是net.sf.ehcache.CacheException:無法實例企業功能經理
以下是我的都是文件;
<bean id="ehcacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
<property name="configLocation" value="/WEB-INF/ehcache.xml" />
<property name="shared" value="true" />
</bean>
代碼:
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd" name="myBigMemoryGoConfig">
<diskStore path="C:/bigmemorygo"/>
<cache name="CACHE_GEN" maxBytesLocalHeap="124M" maxBytesLocalOffHeap="1G">
<persistence strategy="localRestartable"/>
</cache>
<cache name="CACHE_CMP" maxBytesLocalHeap="124M" maxBytesLocalOffHeap="1G">
<persistence strategy="localRestartable"/>
</cache>
</ehcache>
幫助表示讚賞。
感謝, 戈德溫