ehcache Questions

3

I receive this error when starting tomcat with ehcache and Spring. Another CacheManager with same name 'cacheManager' already exists in the same VM. Please provide unique names for each CacheMan...
Petaliferous asked 19/9, 2016 at 16:58

6

I am using Spring Boot and for caching I am using Ehcache. It's working fine till now. But now I have to reload / refresh so how can I do this so that my application will not be having any downtime...
Vicissitude asked 5/6, 2019 at 10:31

4

I have a large java application that is configured to use JPA and Hibernate. It is also supposedly configured to use ehcaching for both entity and query caching. However, I have sql logging turned ...
Mutazilite asked 8/1, 2011 at 22:14

18

This is what happens when I run my junit tests... Another CacheManager with same name 'cacheManager' already exists in the same VM. Please provide unique names for each CacheManager in the config...
Mark asked 4/4, 2012 at 14:32

3

I'm experiencing a problem similar to the described in this question. I have a test suite that runs fine in development environment. One of the tests fails when executed in Bitbucket Pipelines wit...
Nacre asked 10/11, 2018 at 0:39

5

Solved

I'm experiencing the following problem. I have a test suit in my project and each individual test runs fine. However when I run them as a suite I some of them fails with the following exception: ...
Curtcurtail asked 29/4, 2013 at 14:54

2

Solved

I have a spring bean annotated with @Cacheable annotations defined like so @Service public class MyCacheableBeanImpl implements MyCacheableBean { @Override @Cacheable(value = "cachedData") publ...
Mccarthy asked 10/3, 2016 at 9:23

3

I use Ehcache 2 + spring boot. Here is my config: @Bean public CacheManager cacheManager() { return new EhCacheCacheManager(ehCacheCacheManager().getObject()); } @Bean public EhCacheManagerFacto...
Thermae asked 19/10, 2018 at 11:54

1

I can't find cache metrics in sprint boot 2 actuator. How should I query for them or activate or debug? org.springframework.boot:spring-boot-starter-actuator:2.2.5.RELEASE I can see both caches u...
Byzantine asked 28/5, 2020 at 12:47

2

Solved

For now I have following config: @Configuration @EnableCaching public class EhcacheConfig { @Bean public CacheManager cacheManager() throws URISyntaxException { return new JCacheCacheManager(Ca...
Helvetic asked 12/9, 2019 at 14:45

2

I have a fairly simple cache configuration: <cache name="MyCache" maxElementsInMemory="200000" eternal="false" timeToIdleSeconds="43200" timeToLiveSeconds="43200" overflowToDisk="false" ...
Laconic asked 21/12, 2011 at 19:52

0

I have these dependencies added: <dependency> <groupId>org.glassfish</groupId> <artifactId>javax.el</artifactId> <version>3.0.1-b11</version> </depen...
Clodhopper asked 19/8, 2020 at 9:57

7

Solved

Question is clear as you see in the title, it would be appreciated to hear your ideas about adv./disadv. differences between them. UPDATE: I have decided to use Hazelcast because of the advantages...
Ideatum asked 9/3, 2011 at 12:4

5

I am using Ehcache in Hibernate. How can I notify the cache that the database has changed? How can I invalidate the cached data? How can I programmatically achieve this?
More asked 29/4, 2011 at 9:44

0

I'm trying to call a @Cacheable method from within the same class. And it didn't work. Because of: In proxy mode (the default), only external method calls coming in through the proxy are intercept...
Mouthpiece asked 13/7, 2020 at 7:28

5

Solved

I need to frequently access the result of a time-consuming calculation. The result changes infrequently, so I have to recalculate the data from time to time but it is ok to use the outdated r...
Sybilla asked 31/10, 2012 at 13:5

4

Solved

If I am defining a ehcache for a method which doesn't have any parameter. But in my use case I needs to access the my built cache through it's key. So please provide me the better way of assignin...
Poteet asked 2/8, 2014 at 12:42

6

Solved

Shortly, I have an entity mapped to view in DB (Oracle) with enabled 2nd level Cache (read only strategy) -- ehcache. If I manually update some column in DB -- cache will not be updated. I did no...
Fasto asked 28/10, 2016 at 9:28

2

Solved

I'm trying to achieve second level cache in my Java EE project using Hibernate. My Hibernate version is 5.1.0.Final. I've created a table employee in my MySQL database. I've included hibernate-ehca...
Vascular asked 23/2, 2016 at 9:49

2

I'm using latest Ehcache in my Spring 4.1.4 application. What I have is: class Contact{ int id; int revision; } @Cacheable("contacts") public List<Contact> getContactList(List<Intege...
Belga asked 4/7, 2015 at 12:41

4

Solved

In my Spring + Hibernate project, I was doing logging by SLF4J 1.6.4 with LogBack. Now, I've added Ehcache 2.2.0 (through ehcache-spring-annotations-1.1.3). The caching seems to be working as the m...
Decagram asked 22/5, 2012 at 15:25

1

Solved

I tried to update to EhCache 3, but noticed that my AclConfig for spring-security-acl no longer works. The reason is EhCacheBasedAclCache still uses import net.sf.ehcache.Ehcache. EhCache moved to ...
Maratha asked 15/5, 2019 at 20:53

4

We are facing one issue about EhCache and Spring, when we point XSD file in ehcache.xml to http://ehcache.org/ehcache.xsd, everything is ok, our application can startup correct. But our server can...
Roaster asked 7/11, 2012 at 9:4

2

I'm trying to write tests for application which is working based on Hibernate 5.3 and Spring Boot 2.1.3 and using Hibernate second level cache. When I'm executing batch of test which are setting u...
Barragan asked 11/6, 2019 at 13:16

3

Solved

Using Spring 3.2 with EhCache 2.9. I've annotated a zero-parameter method as follows: @Cacheable(value="myList", key="#result.method.name") protected List<MyObject> getMyList() { //db query...
Dirigible asked 7/10, 2015 at 14:10

© 2022 - 2024 — McMap. All rights reserved.