Re: Finding cache.ccf

Thomas Vandahl <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.torque.user
Message-ID <[email protected]>
CCing to Apache Torque Users List <[email protected]>

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 
http://db.apache.org/torque/releases/torque-3.3/runtime/reference/managers-cache.html
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 
Torque.properties.

> - 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.