gavin wrote:
There is no type attribute of the <cache> element. You set hibernate.cache.provider_class. Please refer to the Hibernate manual.
Hibernate 2.0 Beta with SwarmCache Support - May 13, 2003
John Watkinson [john (a) streamsicle.com]
Release Notes
-------------
The latest version of the SwarmCache patch includes patches to two DTDs: hibernate-configuration-2.0.dtd and hibernate-mapping-2.0.dtd. In order to use the new caching features, you will have to make sure that your hbm.xml files or your hibernate.cfg.xml file reference these updated DTDs. For convenience, they can be found here:
http://swarmcache.sourceforge.net/hiber ... on-2.0.dtd
http://swarmcache.sourceforge.net/hiber ... ng-2.0.dtd
Requirements
------------
You will need to have swarmcache-0.91.jar and javagroups-all.jar in your classpath to use SwarmCache with Hibernate. These files are available here:
http://sourceforge.net/project/showfile ... _id=153456
Usage
-----
To enable caching for a given persistent class, place this in the <class> mapping (hbm.xml file):
<cache type="swarmcache" usage="read-write"/>
Or alternatively, place this in your hibernate.cfg.xml file:
<class-cache
class="fully.qualified.classname"
type="swarmcache"
usage="read-write"/>
Note that you must not use a hibernate.properties file if you use hibernate.cfg.xml!
(this is readme.txt attached to hibernate2-swarmcache.jar)
================
??
Thank you. I will try. But above readme.txt maybe wrong?