-->
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.  [ 3 posts ] 
Author Message
 Post subject: hibernate and jbosscache example
PostPosted: Tue Dec 14, 2004 3:04 pm 
Beginner
Beginner

Joined: Fri Mar 12, 2004 5:18 pm
Posts: 44
Hi,

Is there any Hibernate and jbosscache example somewhere?
I appreicate if someone can give me some pointers in how to integrate Hibernate and jbosscache together.

Thank you.


Hibernate version:

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject: Re: hibernate and jbosscache example
PostPosted: Mon Jan 17, 2005 1:05 pm 
Beginner
Beginner

Joined: Mon Aug 16, 2004 6:09 am
Posts: 46
Location: Geneva, Switzerland
sy_cheung2 wrote:
Hi,

Is there any Hibernate and jbosscache example somewhere?
I appreicate if someone can give me some pointers in how to integrate Hibernate and jbosscache together.

Thank you.



It is very easy - you need to specify TreeCacheProvider class as cache provider in hibernate config. It is described in chapter 14.3 of hibernate manual (hibernate_reference.pdf)


Top
 Profile  
 
 Post subject: Example on Sourceforge
PostPosted: Thu Jan 27, 2005 4:01 pm 
Beginner
Beginner

Joined: Tue Nov 30, 2004 6:19 am
Posts: 29
Location: Germany
Hi,

I've published such a example project on sf. Try to acces http://cvs.sourceforge.net/viewcvs.py/sens/ by cvs. It's part of the SENS project but not published officially yet. So if you run into errors, feel free to contact me.

build all provides
- an example sar, containing persistent model classes
- an example jar, containing some small performance tests

The same performance tests are also available as standalone apps, so you can test treecache additionaly in standalone version.


regards,
michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.