Questions specific to Ehcache version 2, for general question about Ehcache use Ehcache tag
Questions tagged [ehcache-2]
41 questions
1
vote
1 answer
How can i use populated data in cache during server startup in Spring?
I am having problem while calling cacheable method from another cacheable method in Spring-4 application, please read following step for more clarification.
1) MyAppStartup class is called when server is started and it call convertXMLToObject…

Ranjit Soni
- 594
- 6
- 19
1
vote
0 answers
How to use BlockingCache from Ehcache in Spring?
I want to implement a blocking cache for multiple requests at some time.
Currently I have this:
In file AppConfig.java I defined the cache manager
@EnableCaching
@Configuration
public class AppConfig implements WebMvcConfigurer {
@Bean
…

Adrian Ispas
- 152
- 1
- 5
1
vote
0 answers
Changing Ehcache cache size via jmx
I've added Ehcache jmx monitoring using this article https://khushroomistry.wordpress.com/2013/09/24/monitoring-ehcache-spring/
What I failed to figure out is how could I enable cache size adjustment via jmx? Is it possible at all?
Found pure java…

long
- 414
- 4
- 15
1
vote
1 answer
How can I instantiate ehcache.CacheEventListener?
We need to close a connection when an object is evicted (timed out) of a cache. In trying to create a CacheEventListener for ehcache (version 2.10.4) we get:
The inherited method Object.clone() cannot hide the public abstract method in…

markthegrea
- 3,731
- 7
- 55
- 78
1
vote
0 answers
'java.lang.NoSuchMethoderror in java application which uses ehcache for cache implementation
I am facing below error when I run my java application which uses spring framework and ehcache for cache implementation. This application is build on IBM Integration Bus which Java and spring framework.
The full error stack is as below
+BIP2230E…

Girish K
- 51
- 5
1
vote
0 answers
Ehache RMI replication with Listener to remote Cache
I am trying to create a event Listener to a remote cache . If any object added or updated to remote cache I want to perform an operation . Is this possible to do?
Here Remote Cache is the Producer and My Local Instance is the Consumer.
I am trying…
0
votes
0 answers
Spring ACL with Spring Boot 3
I have an implementation using Spring Boot 2 and ACL component, I followed this guide for ACL implementation: https://www.baeldung.com/spring-security-acl
Now I am updating my application to Spring Boot 3 but there are some classes where maybe does…

Cristhian Won
- 21
- 1
- 5
0
votes
1 answer
EHCache search for a value within the cache values defined as list of strings
I want to ask if there is a better way to search in an ehcache.
I've created a cache with key and list of values, the list is a arraylist of strings.
Now I want to search wihtin the list of strings e.g. email adresses and return the whole java…

Tobias Wolf
- 21
- 4
0
votes
0 answers
Java in memory Caching library that support methods with element level ttl
I would like to set the expiry time of a member of an cache.
I want the custom ttl when the object should expire.
I know I can set it for the whole cache, e.g.
Cache cache = manager.getCache("MyCache");
CacheConfiguration config =…

anand
- 1
- 1
0
votes
1 answer
Ehcache migration from net.sf.ehcache 2.10.9.2 to org.ehcache 3.10.8
I am trying to upgrade Ehcache for my Project from net.sf.ehcache 2.10.9.2 to org.ehcache 3.10.8 version.
Any replacement for net.sf.ehcache.Element and CacheExceptionHandler.
Less documentation on Ehcache 3, Can anyone give some tips for…
0
votes
0 answers
Ehcache 3.10.8 version class for hibernate.cache.provider_class property
We are upgrading the Ehcache version from 2.10.9.2 to ehcache 3.10.8 but we are using hybernate 3.2.3 version. Currently we are using below provider class from ehcache 2.10.9.2. I did not find the relevant provider classin 3.10.8.

Venkata Krishna Jonnabhatla
- 38
- 1
- 6
0
votes
0 answers
Ehcache 2 is not expiring after ttl time end
I have set expiry time as 5 minutes, but after 5 minutes , the value is picked form the cache it self not calling the actual method. The cache is not getting expired after ttl completion.
CacheConfig.java
@Configuration
@EnableCaching
public class…

shruti garg
- 177
- 1
- 14
0
votes
1 answer
Grails 2.4.5 Error net.sf.ehcache.CacheException: javax.management.MalformedObjectNameException Invalid character ':' in value part of property
I get this error below when running a Grails 2.4.5 project (full stacktrace)
Error |
2021-11-28 01:27:44,302 [localhost-startStop-1] ERROR context.GrailsContextLoaderListener - Error initializing the application: Error creating bean with name…

Axel Kouassi
- 11
- 6
0
votes
0 answers
Why would Spring Boot/EhCache NOT use the specified configuration file?
I'm trying to enable EhCache 3 caching inside a Spring Boot 2 application and as near as I can tell I've set this up correctly but caching is just...NOT working and I'm being given no information as to why.
I've added to my maven POM:
…

Sloloem
- 1,587
- 2
- 15
- 37
0
votes
1 answer
Hibernate 5.4.25 second level cache and extending the SingletonEhcacheRegionFactory class
In Hibernate 5.2.18, it was possible to set the hibernate configuration option hibernate.cache.region.factory_class to a class value. This allowed me to extend the class org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory and implement…

Navigatron
- 2,065
- 6
- 32
- 61