views:

74

answers:

0

I have 2 java web applications: The first called runtime and the second called editor The runtime application is using JCS MySql cache In certain scenarios, I need to invalidate the cache from the editor application. When I am doing it, I can see that the entries are being deleted from the MySql however the runtime application is still serving the old cached objects. I am not sure if this is a connection pool problem or something related to JCS memory cache. Does anyone have any idea about it? My cache.ccf file is below. Thanks, Amir

# ############ DEFAULT CACHE REGION

sets the default aux value for any non configured caches

jcs.default=MYSQL jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.default.cacheattributes.MaxObjects=5000 jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.default.cacheattributes.UseMemoryShrinker=false jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=7200 jcs.default.cacheattributes.ShrinkerIntervalSeconds=60 jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes jcs.default.elementattributes.IsEternal=true jcs.default.elementattributes.MaxLifeSeconds=14400 jcs.default.elementattributes.IdleTime=14400 jcs.default.elementattributes.IsSpool=true jcs.default.elementattributes.IsRemote=true jcs.default.elementattributes.IsLateral=true jcs.default.cacheattributes.DiskUsagePatternName=UPDATE

# ############ CACHE REGIONS AVAILABLE # ############ AUXILIARY CACHES AVAILABLE

MYSQL disk cache used for flight options

jcs.auxiliary.MYSQL=org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCacheFactory jcs.auxiliary.MYSQL.attributes=org.apache.jcs.auxiliary.disk.jdbc.JDBCDiskCacheAttributes jcs.auxiliary.MYSQL.attributes.userName=root jcs.auxiliary.MYSQL.attributes.password=admin jcs.auxiliary.MYSQL.attributes.url=jdbc:mysql://localhost/dudacache jcs.auxiliary.MYSQL.attributes.driverClassName=org.gjt.mm.mysql.Driver jcs.auxiliary.MYSQL.attributes.tableName=duda_cache jcs.auxiliary.MYSQL.attributes.testBeforeInsert=true jcs.auxiliary.MYSQL.attributes.maxActive=100 jcs.auxiliary.MYSQL.attributes.MaxPurgatorySize=10000000 jcs.auxiliary.MYSQL.attributes.UseDiskShrinker=false jcs.auxiliary.MYSQL.attributes.ShrinkerIntervalSeconds=1800 jcs.auxiliary.MYSQL.attributes.allowRemoveAll=true jcs.auxiliary.MYSQL.attributes.EventQueueType=POOLED jcs.auxiliary.MYSQL.attributes.EventQueuePoolName=disk_cache_event_queue

# ############ OPTIONAL THREAD POOL CONFIGURATION

Disk Cache pool

thread_pool.disk_cache_event_queue.useBoundary=true thread_pool.disk_cache_event_queue.boundarySize=1000 thread_pool.disk_cache_event_queue.maximumPoolSize=50 thread_pool.disk_cache_event_queue.minimumPoolSize=10 thread_pool.disk_cache_event_queue.keepAliveTime=3500 thread_pool.disk_cache_event_queue.whenBlockedPolicy=RUN thread_pool.disk_cache_event_queue.startUpSize=10