Cache Provider plugin for Hibernate 3.2 and ehcache-1.2. New in this provider are ehcache support for multiple
Hibernate session factories, each with its own ehcache configuration, and non Serializable keys and values.
Ehcache-1.2 also has many other features such as cluster support and listeners, which can be used seamlessly simply
by configurion in ehcache.xml.
hibernate.cache.provider_class=net.sf.ehcache.hibernate.EhCacheProvider in the Hibernate configuration
to enable this provider for Hibernate's second level cache.
When configuring multiple ehcache CacheManagers, as you would where you have multiple Hibernate Configurations and
multiple SessionFactories, specify in each Hibernate configuration the ehcache configuration using
net.sf.ehcache.configurationResourceName An example to set an ehcach configuration
called ehcache-2.xml would be
net.sf.ehcache.configurationResourceName=/ehcache-2.xml. If the leading
slash is not there one will be added. The configuration file will be looked for in the root of the classpath.
Updated for ehcache-1.2. Note this provider requires ehcache-1.2.jar. Make sure ehcache-1.1.jar or earlier
is not in the classpath or it will not work.
See http://ehcache.org for documentation on ehcache