-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: problem about OSCache and SwarmCache
PostPosted: Tue Dec 16, 2003 12:08 pm 
Newbie

Joined: Fri Nov 28, 2003 6:02 am
Posts: 2
I want to use SwarmCache to cache object and use OSCache to cache presentation level.

but hibernate reference is little about them.
I following the readme of hibernate-swarmcache.jar, and use <cache type="swarmcache"...> instead of <jcs-cache ...>. the db operation did not work and with no error infomation. JSP page would pending ...

Anybody can give a total sample about how to use oscache and swarmcache.

thanks alot.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 16, 2003 8:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
There is no type attribute of the <cache> element. You set hibernate.cache.provider_class. Please refer to the Hibernate manual.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 16, 2003 9:41 pm 
Newbie

Joined: Fri Nov 28, 2003 6:02 am
Posts: 2
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?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 16, 2003 9:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Hibernate 2.1final has built-in support for SwarmCache. Just use the build that ships with Hibernate and refer to the Hibernate doco.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.