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.  [ 2 posts ] 
Author Message
 Post subject: Read-write cache only works with single transaction/session?
PostPosted: Tue Jan 17, 2006 5:42 pm 
Newbie

Joined: Wed Dec 21, 2005 12:05 pm
Posts: 2
I am using hibernate 3.1. I have multiple transactions in each session. It seems that the items I put into the cache are only gettable for those sessions created later. It looks pretty weird to me that the DefaultLoadEventListener.loadFromSecondLevelCache(LoadEvent, EntityPersister, LoadType) uses the session timestamp as a transaction timestamp and passes it to ReadWriteCache.get(Object key, long txTimestamp). This prevents my loading code in a later transaction started from the same session hitting the cache. Does anyone know if this is designed that way?


Top
 Profile  
 
 Post subject: A follow-up question
PostPosted: Wed Jan 18, 2006 10:52 am 
Newbie

Joined: Wed Dec 21, 2005 12:05 pm
Posts: 2
If it is designed that way, why doesn't Session.clear() reset the timestamp?


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