Return-Path: Delivered-To: apmail-jakarta-turbine-jcs-user-archive@www.apache.org Received: (qmail 68497 invoked from network); 16 Aug 2004 16:09:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 16 Aug 2004 16:09:14 -0000 Received: (qmail 70339 invoked by uid 500); 16 Aug 2004 16:09:13 -0000 Delivered-To: apmail-jakarta-turbine-jcs-user-archive@jakarta.apache.org Received: (qmail 70265 invoked by uid 500); 16 Aug 2004 16:09:13 -0000 Mailing-List: contact turbine-jcs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Turbine JCS Users List" Reply-To: "Turbine JCS Users List" Delivered-To: mailing list turbine-jcs-user@jakarta.apache.org Received: (qmail 70250 invoked by uid 99); 16 Aug 2004 16:09:13 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [129.176.212.21] (HELO mhro1.mayo.edu) (129.176.212.21) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 16 Aug 2004 09:09:12 -0700 Received: from excsrv01.mayo.edu (excsrv01.mayo.edu [129.176.235.101]) by mhro1.mayo.edu with ESMTP for turbine-jcs-user@jakarta.apache.org; Mon, 16 Aug 2004 11:07:39 -0500 Received: by excsrv01.mayo.edu with Internet Mail Service (5.5.2653.19) id <3Q9JJYSW>; Mon, 16 Aug 2004 11:07:38 -0500 Message-Id: <44DC0A850253E940A9697738134B73A03EBFC0@excsrv53.mayo.edu> From: "Yang, Fang" To: "'turbine-jcs-user@jakarta.apache.org'" Subject: MaxLifeSeconds and IdleTime definition Date: Mon, 16 Aug 2004 11:05:48 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I defined both MaxLifeSeconds and IdleTime in the cache.ccf file, but it does not work. Could someone please tell me what I did wrong? Also, what the groupIDCache definition is used for? Do I need it for simple memory cache without any auxiliary? I am new to JCS, and thanks in advance for your help! Fang My ccf file: # DEFAULT CACHE REGION # Sets the default value for any non configured caches jcs.default= jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.default.cacheattributes.MaxObjects=1000 jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.system.groupIdCache= jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.system.groupIdCache.cacheattributes.MaxObjects=10000 jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache # default region used by the OJB jcs.region.OjbCache= jcs.region.OjbCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.region.OjbCache.cacheattributes.MaxObjects=1000 jcs.region.OjbCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.region.OjbCache.elementattributes.IsEternal=false jcs.region.OjbCache.elementattributes.MaxLifeSeconds=240 jcs.region.OjbCache.elementattributes.IdleTime=120 jcs.region.OjbCache.elementattributes.IsSpool=false jcs.region.OjbCache.elementattributes.IsRemote=false jcs.region.OjbCache.elementattributes.IsLateral=false The console output when initializing JCS: [8/16/04 9:30:22:101 CDT] 46cc46cc CompositeCach I org.apache.jcs.engine.control.CompositeCacheConfigurator setting defaults to [8/16/04 9:30:22:131 CDT] 46cc46cc CompositeCach I org.apache.jcs.engine.control.CompositeCacheConfigurator setting defaultCompositeCacheAttributes to [ useLateral = true, useRemote = true, useDisk = true, maxObjs = 1000 ] [8/16/04 9:30:22:131 CDT] 46cc46cc OptionConvert W org.apache.jcs.config.OptionConverter Could not find value for key jcs.default.elementattributes [8/16/04 9:30:22:141 CDT] 46cc46cc CompositeCach W org.apache.jcs.engine.control.CompositeCacheConfigurator Could not instantiate eAttr named 'jcs.default.elementattributes', using defaults. [8/16/04 9:30:22:141 CDT] 46cc46cc CompositeCach I org.apache.jcs.engine.control.CompositeCacheConfigurator setting defaultElementAttributes to [ IS_LATERAL = false, IS_SPOOL = false, IS_REMOTE = false, IS_ETERNAL = true, MaxLifeSeconds = -1, IdleTime = -1, CreateTime = 1092666622141, LastAccessTime = 1092666622141, getTimeToLiveSeconds() = -1000, createTime = 1092666622141 ] [8/16/04 9:30:22:141 CDT] 46cc46cc OptionConvert W org.apache.jcs.config.OptionConverter Could not find value for key jcs.system.groupIdCache.elementattributes [8/16/04 9:30:22:151 CDT] 46cc46cc CompositeCach W org.apache.jcs.engine.control.CompositeCacheConfigurator Could not instantiate eAttr named 'jcs.system.groupIdCache.elementattributes', using defaults. [8/16/04 9:30:22:261 CDT] 46cc46cc LRUMemoryCach I org.apache.jcs.engine.memory.lru.LRUMemoryCache initialized LRUMemoryCache for groupIdCache [8/16/04 9:30:22:261 CDT] 46cc46cc CompositeCach I org.apache.jcs.engine.control.CompositeCache Constructed cache with name: groupIdCache [8/16/04 9:30:22:261 CDT] 46cc46cc OptionConvert W org.apache.jcs.config.OptionConverter Could not find value for key jcs.region.OjbCache.elementattributes [8/16/04 9:30:22:261 CDT] 46cc46cc CompositeCach W org.apache.jcs.engine.control.CompositeCacheConfigurator Could not instantiate eAttr named 'jcs.region.OjbCache.elementattributes', using defaults. [8/16/04 9:30:22:301 CDT] 46cc46cc LRUMemoryCach I org.apache.jcs.engine.memory.lru.LRUMemoryCache initialized LRUMemoryCache for OjbCache --------------------------------------------------------------------- To unsubscribe, e-mail: turbine-jcs-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: turbine-jcs-user-help@jakarta.apache.org