-->
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: cache + webapps
PostPosted: Mon May 10, 2004 8:57 am 
Newbie

Joined: Mon May 10, 2004 7:58 am
Posts: 15
Hi,

Is hibernate able to share cached data among different sessions?
I mean, if i'm running a webapp that opens an hibernate session on each request to
read-only some data... will hibernate be able to serve cached data for the next requests?


thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 9:01 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Read the documentation, chapter 14.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 9:13 am 
Newbie

Joined: Mon May 10, 2004 7:58 am
Posts: 15
that's what i did but i did not understand clearly. It seems that sessions have "private cache" and not shared one. but i'm going to read it again and again :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 9:19 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
first level cache = session = unit of work cache (cache used per httpRequest for example)

second level cache = application cache (for one cluster or multi cluster if your cache support it) = cache shared by all session = cache shared by all the application


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.