Question

We are trying to debug some issues with EhCache and we are unsure what configuration is being used. Is there a way to export or advice on debugging an EhCache configuration?

Était-ce utile?

La solution

You can output the full Ehcache configuration using a little bit of Java code. Just get a reference to your active cache manager by name. (The name should be in your ehcache.xml)

CacheManager mgr = CacheManager.getCacheManager("my-cache-manager");
System.out.println(mgr.getActiveConfigurationText());

This will output the current configuration to the log/console.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top