db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl ...@apache.org>
Subject Re: Finding cache.ccf
Date Tue, 08 Jul 2008 17:37:51 GMT
CCing to Apache Torque Users List <torque-user@db.apache.org>

Graham Leggett wrote:
> Hi all,
> I am trying to configure JCS embedded within Apache Torque, which in 
> theory is as simple as creating cache.ccf and placing it in the classpath.
> In practice, JCS.getInstance(region) returns null every time, and I have 
> spent the last few hours stabbing in the dark as to why.

First, see 
for a description on how to use the cache with Torque.

You really should have "torque.useManagers = true" in your Torque 
generator configuration and "torque.manager.useCache = true" in 

> - Is there a way that I can receive confirmation that JCS found a 
> cache.ccf file, and if so, where it found the file?

You could configure a DEBUG logger for org.apache.jcs.

> - In the /WEB-INF/classes directory of the webapp that wraps the code
This is where I put mine.

> jcs.region.com_domain_Signature=
> jcs.region.com_domain_Signature.cacheattributes=org.apache.stratum.jcs.engine.CompositeCacheAttributes

> jcs.region.com_domain_Signature.cacheattributes.MaxObjects=1200
> jcs.region.com_domain_Signature.cacheattributes.MemoryCacheName=org.apache.stratum.jcs.engine.memory.lru.LRUMemoryCache

This looks strange to me. Are you sure that the 
org.apache.stratum-package is correct? I'd try org.apache.jcs first.

Bye, Thomas.

To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message