wood burning stoves 2.0*
The moose likes EhCache and the fly likes [EHCACHE] Problem defaultCache and cache in distributed environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Caching » EhCache
Bookmark "[EHCACHE] Problem defaultCache and cache in distributed environment" Watch "[EHCACHE] Problem defaultCache and cache in distributed environment" New topic
Author

[EHCACHE] Problem defaultCache and cache in distributed environment

Jaime Renovell
Greenhorn

Joined: Feb 28, 2011
Posts: 2
Hello,

My question refers to the distributed cache configuration.

Using the same configuration, with only defaultCache, I get inconsistent data (case A). But if I add an additional cache entry will not get those errors of inconsistency (case B).

Do you know why?

I do not want to set the 130 caches that set aumaticamente defaultCache

Thanks in advance

P. S. I guess all the time that what is not specified, will EHCache as a template using defaultCache settings.

Case A:



Case B:

Guillaume Jourdan
Ranch Hand

Joined: Jul 24, 2012
Posts: 47

Hello,

Can you give us your console logs?

For example, it's possible that your specific declaration (case B) have a syntax problem, EHCache ignore your ehcache.xml file and use ehcache-failsafe.xml (default configuration for ehcache).

I don't know how you're called your specific cache, but the cache name is different of the class name...

Can you give us more details on your configuration?

Test without your ehcache.xml file to see if you are in the same case of the case B.
Guillaume Jourdan
Ranch Hand

Joined: Jul 24, 2012
Posts: 47

I just see that the post is opened the Monday, February 28, 2011 14:28:40...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [EHCACHE] Problem defaultCache and cache in distributed environment
 
Similar Threads
Query when Using EHCache mechanism
Problem with read-write cache
Renamed "ehcache.xml" to "myehcache.xml" - Cannot find the declaration of element 'ehcache'
Error during CacheManager initialization for distributed ehcache implementation
ehcache.xml file I have in my ejb app is not used