Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EhCacheFactoryBean] diskStorePath property has no effect [SPR-5076] #9750

spring-projects-issues opened this issue Aug 11, 2008 · 1 comment


Copy link

@spring-projects-issues spring-projects-issues commented Aug 11, 2008

Kenny MacLeod opened SPR-5076 and commented

EhCacheFactoryBean has a diskStorePath property, which is in turn passed to the constructor of net.sf.ehcache.Cache. The resulting Cache object is then passed to CacheManager.addCache. At this point, CacheManager unconditionally stomps on the diskStorePath property of the Cache object, over-writing it with its own diskStorePath value. It seems to do this regardless of the existing version.

Obviously this isn't a bug in Spring per se, but there doesn't seem to be much point in offering the property if the ehcache runtime just throws it away.

This happens both with ehcache 1.4.1 and 1.5.0

Affects: 2.5.5

Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Sep 2, 2008

Juergen Hoeller commented

Indeed, even the javadoc of the Cache constructor says the diskStorePath argument will be ignored because CacheManager overwrites it. Weird...

In any case, I've removed EhCacheFactoryBean's "diskStorePath" property as of Spring 2.5.6.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants