[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3450) Include SingletonEhCacheProvider as an additional caching provider
Greg Luck (JIRA)
noreply at atlassian.com
Wed Aug 27 04:12:27 EDT 2008
Include SingletonEhCacheProvider as an additional caching provider
------------------------------------------------------------------
Key: HHH-3450
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3450
Project: Hibernate3
Issue Type: Improvement
Components: caching (L2)
Affects Versions: 3.3.0.GA
Environment: Any
Reporter: Greg Luck
Attachments: SingletonEhCacheProvider.java
The SingletonEhCacheProvider complements the existing EhCacheProvider in that it is a singleton. This matches the way the provider used to work in older versions of Hibernate/Ehcache.
It is preferable to use the SingletonEhCacheProvider unless a user is running multiple versions of Hibernate (a use case we had at wotif) or multiple instances of SessionFactory. This provider is distributed with Ehcache but not with Hibernate. It would be preferable it we added it to Hibernate and it is frequently overlooked by users. This code is in production use on many systems, including those of the author.
The attached class is the one from the Ehcache project. It will need some minor tweaking to match the conventions of Hibernate project.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list