Questions tagged [jcs]

JCS is a distributed caching system written in java. It is intended to speed up applications by providing a means to manage cached data of various dynamic natures

JCS is a distributed caching system written in java. It is intended to speed up applications by providing a means to manage cached data of various dynamic natures. Like any caching system, JCS is most useful for high read, low put applications. Latency times drop sharply and bottlenecks move away from the database in an effectively cached system.

JCS

89 questions
1
vote
0 answers

How to convert cache.ccf to javax.cache.Configuration

I recently set up my first JCS cache which persists my Serializable objects to local disk (so that I can restart my application and continue using the cache, etc.). I used JCS directly but I'd like to use javax.cache (jcache) instead but I'm having…
mfulton26
  • 29,956
  • 6
  • 64
  • 88
1
vote
0 answers

JCS remote cache

I am having a use case to implement a system which receives updates every 30 minutes. We are doing a POC for implementing this using JCS remote cache. The requirements are cache servers to be load balanced and consistent. We are planning to have…
1
vote
0 answers

JCS auxiliary cache disk path configuration

I'm using JCS 2.0 in order to create a cache system for my web application. Since this application will run in different servers, which may have different home paths, I'd like to know if there's a method to programmatically change the disk path for…
IlGala
  • 3,331
  • 4
  • 35
  • 49
1
vote
0 answers

How to set the auxiliary disk cache programmatically using jcs

I am obtaining my cache object like this CacheAccess cache = JCS.getInstance("queries"); I have put a config file in the classpath cache.ccf. For debugging reasons I want to set the aux disk cache path programmatically, but do not…
Kai
  • 376
  • 1
  • 4
  • 17
1
vote
0 answers

JCS, recovering from a dead node using in memory caching only

For example, we have server which acts as a file store (jackrabbit back end). This data is pushed on start into the in memory JCS Cache. This all seems to work fine. However, our software can be multi-noded, so we need to have JCS replicate the data…
joe90
  • 538
  • 2
  • 5
  • 19
1
vote
1 answer

How do I use Cache mechanism for returned database events

My database(Oracle) pushes rowID's when DML operations are performed and my java program has a listeners which handles the events and gets the rowID's. For Example: Below are the values returned from database on DML operation ROW: operation=UPDATE,…
user4414924
1
vote
0 answers

Self contained java cache?

Normally I have used memcached to speed up the web (or non web) applications I work with. Unfortunately I am in a situation in which I have no way to install memcache (this is not a technical constraint, it is just bureaucracy). So I was…
Juan Antonio Gomez Moriano
  • 13,103
  • 10
  • 47
  • 65
1
vote
0 answers

Problems configuring JCS remote auxiliary

I'm new to JCS and currently trying to configure JCS ver 1.3 Remote auxiliary. Both my client and server cache.ccf are almost equivalent to the samples provided here. Note that my server is configured to run at localhost: 1104. The moment my client…
pkshenvi
  • 63
  • 5
1
vote
1 answer

Cache Regions and Cache memory Groups: Memcache, EhCache, JCS

Most of caching service support to cache any object as key and value pair. But I am looking for a way that objects can be cached as regions or groups. That means, caching objects should be able to group. One or more objects are cached to a group.…
Débora
  • 5,816
  • 28
  • 99
  • 171
1
vote
1 answer

Avoid manipulation of distributed cache

I plan to use JCS or ehcache in Spring Cache and put this into a REST based webservice. The webservice will be distributed across at least two application servers. Because of this I plan to use a distributed cache. From my understanding this means…
Marged
  • 10,577
  • 10
  • 57
  • 99
1
vote
0 answers

Java: why the get method of JCS goes very slow?

I am working on a project using Java & JCS While I found that jcs.get is really slow while jcs.put is pretty fast. My code is something like these: Properties cacheConf = new Properties(); final String classPath =…
Soyoes
  • 940
  • 11
  • 16
1
vote
1 answer

sample example for JCS

I am implementing JCS for the first time. My requirement : I have one java class with a main method in which i am storing some data in the cache. I have second java class with a main method from which i am retrieving from the disk cache which i had…
Vasu Dev
  • 11
  • 1
  • 1
  • 6
1
vote
0 answers

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…
rjoshi
  • 1,645
  • 1
  • 20
  • 31
0
votes
0 answers

Complete example to implement Remote Cache Server/Client using JCS

We have a requirement to maintain cache in an application which is deployed in JBoss/Wildfly. Other applications deployed in JBoss should be able to access the same cache to put or get operations. Example: Application A: expected to act as Remote…
0
votes
0 answers

Objects don't seem to stay in cache for the duration I expect

I am new to Java Caching System. I am using it on my website. Here is the cache.ccf…
curious1
  • 14,155
  • 37
  • 130
  • 231