-->
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: Problem with a nonthreadsafe acces to session when flushing
PostPosted: Tue Dec 23, 2003 5:33 am 
Newbie

Joined: Mon Oct 13, 2003 12:57 pm
Posts: 3
Hi,
So as to use a cache and not the cache of the session, we've implemented a delegated session class, which is called in place of the normal session, and do an evict on every object loaded from data base.
The problem is that an error occurs each time we want to flush the session, and for example when asking for a new connection.

any idea ?
Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 23, 2003 6:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Don't do this... Just use the session for the unit of work then discard it. Only ever need to evict in special situations.


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.