jcs

Overriding JCS events

I am using Apache JCS in our application to cache commonly used data at application start-up. However, if some of the data in cache is not used till its idle time, I want to manually reload that value from database. So, basically I want to over-ride the JCS events such that my java program is aware of instants when a key is getting re...

Java object caching, which is faster, reading from a file or from a remote machine?

I am at a point where I need to take the decision on what to do when caching of objects reaches the configured threshold. Should I store the objects in a indexed file (like provided by JCS) and read them from the file (file IO) when required or have the object stored in a distributed cache (network, serialization, deserialization) We a...

Singleton across classloaders/EJB:How to avoid multiple instance of JCS Cache due to multiple class loader/EJB's?

I want to use JCS (Java Cache System) to cache ldap queries which should be shared by multiple EJB's (class loaders) to avoid the duplicate searches. I have created a singleton wrapper to create only one instance of JCS cache but due to each EJB's having their own class loader, it creates multiple instance of JCS cache so ldap search re...

How do you share Java Caching System (JCS) resource across multiple EJB

I am using JCS to store the ldap search results which should be shared by multiple EJB. I have created a singleton class to initialize JCS only once but due to EJB's classloader, it's been initialized multiple times with its own copy. so search resources are not shared. How are you guys resolving issue where you need to share the cache ...

Java distributed objects with locality?

I am evaluating various Java object distribution libraries (Terracotta, JCS, JBoss, Hazelcast ...) for an application server and I'm having trouble understanding their behavior on various axes. My requirements for distributed objects are not many -- they boil down to one-to-one and one-to-many messaging. There's more, but for the rest w...

JCS remote client won't shut down

I'm taking my first steps with JCS (Java caching system by Apache). I set up two remote cache clients in a cluster and wrote a simple cache client. Everything seems to work fine, except that the process never finishes. Here's a minimal client: cache.ccf: jcs.default=RFailover jcs.default.cacheattributes=org.apache.jcs.engine.Composite...

JCS JDBC Cache is not being invalidated when invalidate is called from another web application

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 ...

Is JCS still being maintained?

I need to add a cache to my Java app, and I'm considering using JCS. The last JCS release was done in June 2009. Is JCS still being maintained, or has the project been abandoned? I realize that anyone can look at the svn checkin log for JCS. What I would ideally like is an answer from someone who is a JCS committer, or who is directl...