목차 >> Cache Manager +- GlueCacheManager +- GlueEhCacheManager +- GlueJCSCacheManager |
Glue Project 생성시 EhCache 를 사용하는 것으로 구성되어 있으므로, JCS 관련 리소스로 변경합니다.
applicationContext.xml의 일부 |
<bean id="cacheManager" class="com.poscoict.glueframework.cache.GlueCacheManagerJCS"/>
cache.ccf |
## cache.ccf 예시 # DEFAULT CACHE REGION # sets the default aux value for any non configured caches jcs.default= jcs.default.cacheattributes=org.apache.jcs.engine.ComGlueiteCacheAttributes jcs.default.cacheattributes.MaxObjects=1000000 jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes jcs.default.elementattributes.IsEternal=false jcs.default.elementattributes.MaxLifeSeconds=-1 jcs.default.elementattributes.IdleTime=1 jcs.default.elementattributes.IsSpool=true jcs.default.elementattributes.IsRemote=false jcs.default.elementattributes.IsLateral=true
pom.xml의 일부 |
<dependency> <groupId>com.poscoict</groupId> <artifactId>glue-core</artifactId> <version>${glue-version}</version> </dependency> <dependency> <groupId>org.apache.jcs</groupId> <artifactId>jcs</artifactId> <version>${jcs-version}</version> </dependency>