-->
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: Hibernate SQL Server Deadlock
PostPosted: Thu Apr 10, 2008 3:38 pm 
Newbie

Joined: Thu Apr 10, 2008 2:59 pm
Posts: 1
Hi,

I'd like to ask a help for the hibernate's community.
I have a application (Hibernate 3.2, SQL Server 2000). This application is a EJB, critical, used parallel way.

Sometimes happens a error of deadlock (SQL Error: 1205) and my application is stoped. This errors is between 2 methods, where, each method have a session and each session is closed - this methods is 2 diferentes selects (just selects), but in the same record in DB.

I already try to use dirty transaction, isolation level, lockmode...
The only solution I found its was to write sql and to instantiate all objects envolved, without to use hibernate. Its work, but is very, very hard.

Anyone can help me?

Att.
Anderson


Top
 Profile  
 
 Post subject: Re: Hibernate SQL Server Deadlock
PostPosted: Thu Apr 10, 2008 4:01 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
We had this problem a while ago. At the time HB was not putting with (nolock) statements in generated selects and one of the guys in our team modified the HB code so that it includes with (nolock) statements when LockMode.NONE is used. I am not aware if hibernate has fixed this problem or has any intention to do so but you can always modify hibernate's code.



Farzad-


Top
 Profile  
 
 Post subject: Re: Hibernate SQL Server Deadlock
PostPosted: Fri Apr 11, 2008 7:47 am 
Newbie

Joined: Fri Apr 11, 2008 7:40 am
Posts: 1
I am also using mssql database in my application, im getting errors while connecting to mssql using hibernate. Can you please tell me how to connect to mssql with hibernate?


Top
 Profile  
 
 Post subject: Re: Hibernate SQL Server Deadlock
PostPosted: Fri Apr 11, 2008 9:51 am 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
bbssrr wrote:
I am also using mssql database in my application, im getting errors while connecting to mssql using hibernate. Can you please tell me how to connect to mssql with hibernate?



What errors?


Farzad-


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.