-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate same entity managed in 2 sessions
PostPosted: Thu Sep 04, 2008 5:10 pm 
Beginner
Beginner

Joined: Mon Mar 31, 2008 10:05 am
Posts: 20
Hi,

I'm using Hibernate 3.2.6.GA and been wondering whether it is possible to have the same hibernate entity managed by 2 different sessions at the same time ?

I stumbled upon an issue in my application where the entity would be

1. loaded in session#1
2. merged in session#2

at this point session#2 would hang because session#1 holds an exclusive database lock. By the way database monitoring tells me the current statement in session#1 is a SELECT produced by HQL which seems to be generating the exclusive row lock blocking session#2 update.


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

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.