Skip to main content

Questions tagged [jcache]

JCACHE :JSR 107- Java Temporary Caching API. Specifies API and semantics for temporary, in-memory caching of Java objects, including object creation, shared access, spooling, invalidation, and consistency across JVM's. source: https://jcp.org/en/jsr/detail?id=107

0 votes
1 answer
11 views

EhCache 3 how to get the alias (name) of a Cache from a CacheEvent?

I have a generic listener for most of my caches and I do some logging when an event occurs. The problem is that I don't know which cache is behind the event that I caught. How do I get the cache's ...
ssimm's user avatar
  • 1,906
0 votes
0 answers
25 views

class org.hibernate.cache.jcache.internal.JCacheRegionFactory cannot be cast to class org.hibernate.cache.spi.TimestampsCacheFactory

I am trying to learn Hibernate and while follwing the tuterial the second level cache he is using is not working any more and when trying to find options I could not get to a solutions here is what my ...
Bxihit Egzie M's user avatar
0 votes
1 answer
57 views

Problem with HttpSession serialization (ClassNotFoundException) after migration to Spring Session 3 and Hazelcast 5

I am trying to migrate from Spring Boot 2.7 application with Hazelcast 4.2 to Spring Boot 3.2 and Hazelcast 5.3, which also includes JCache Hazelcast provider. In previous version I was using ...
G4iner's user avatar
  • 31
0 votes
0 answers
87 views

Migrating Ehcache to Jcache with springmodules 0.8x

I am migrating my project from spring 5.x to spring 6.x .While doing this I have been facing issue with bean creation of EhcacheManager since it is deprecated in spring context support 6.x and ...
Pranav Siddhant's user avatar
0 votes
0 answers
29 views

Maintaining reference to already-loaded cache between server restarts, or, after a new version of the app is deployed

So I have an app deployed in appengine and it uses JCache as the cache API. Fact 1: The cache is loaded with data from the DB every day between 00:01 am and 00:04 am. This process works and there is ...
Applix Systems's user avatar
0 votes
1 answer
118 views

WebSphere Liberty integration with Redis for HTTP Session Persistence

We are trying to replace WebSphere Extremescape in our environment and planning to use redis. The only reason we are using WebSphere extremescale is to provide HTTP session persistence. I believe we ...
Rakesh Vohra's user avatar
0 votes
1 answer
150 views

How to configure a clustered JCache using Ehcache 3

When creating a clustered Cache following the Ehcache documentation, I get a PersistentCacheManager implementing org.ehcache.CacheManager but not javax.cache.CacheManager which is what I need in my ...
Selaron's user avatar
  • 6,165
1 vote
1 answer
1k views

Does Spring Framework 6.x support Jcache (JSR 107) implementation (javax.cache:cache-api:1.1.1)?

I'm looking to make an upgrade to a Spring backend project, moving from Spring 5.3 to Spring 6.1. Since this upgrade requires migrating from Javax to a Jakarta namespace, I was looking into some of ...
redheaddev's user avatar
0 votes
0 answers
347 views

Bucket4j with Redisson , the number of tokens is always same in bucket

I'm using these two dependency the code is also shared below , the issue is when I'm trying to run the application for the rate limit everytime I'm consuming the bucket its token is always the same. ...
amrit singh's user avatar
0 votes
0 answers
61 views

Why local-update-policy for the near cache can be configured only for jcache client?

I am planning to use the Hazelcast as a hibernate second-level cache provider in client-server configuration. There are two options for this. One via hibernate-jcache dependency and the other via ...
Anton Vovk's user avatar
0 votes
1 answer
425 views

bucket4j redisson spring Java17: error JCacheProxyManager ClassCastException: class java.lang.String cannot be cast to class [B ... loader bootstrap

Getting the following error trying to use bucket4j API for Bucket.tryConsume when using: bucket4j + JCache + redisson + springboot + Java17 pom.xml <!-- Bucket4J starter : Bucket4J + JCache --> &...
Vivek Sharma's user avatar
1 vote
1 answer
81 views

CDI exception when trying to use Infinispan JCache on OpenLiberty

I'm trying to use Infinispan and JCache API to add some caching feature tu my JEE app running on OpenLiberty. I'm trying to make it work in a POC project so, for now, I don't have any code, I'm just ...
Clément Honoré's user avatar
0 votes
1 answer
76 views

OpenLiberty caching feature

I would like to add some caching features to my JEE application running on OpenLiberty. I would rely on JCache API and Infinispan. I understand that some OpenLiberty features could use some caching ...
Clément Honoré's user avatar
0 votes
1 answer
55 views

Fail to get access lazy fetched field ( @ManyToOne ) which is part of a composite Id (using an @IdClass) when stored in L2 cache

I'm migrating from hibernate 5.6.15 to hibernate 6 (I tried with versions from 6.1.7 to 6.2.3) and I have noticed some issues with the L2 cache when an entity has a composite Id with one of its field ...
BummyWatermoon's user avatar
2 votes
1 answer
800 views

How to programmatically configure L2 Hibernate caches with ECache?

I'm trying to configure L2+QueryCache for Hibernate 6.1.7 in my Spring 6 app running Ehcache 3.10.x In my app, Spring-level caches with method-level @Cacheable, @CachePut, @CacheEvict, etc. work fine. ...
RemasteredDruid's user avatar

15 30 50 per page
1
2 3 4 5
13