-->
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: suggestion for an exception
PostPosted: Sun Feb 27, 2005 11:44 am 
JBoss jBPM Developer
JBoss jBPM Developer

Joined: Thu Aug 28, 2003 11:56 am
Posts: 30
Location: Belgium
i have no clue if the following can/should be solved in hibernate. i just wanted to give this feedback.

Hibernate version:
hibernate 3 beta 4

Situation:
I was using the hilo id generator in combination with c3p0 connection pooling and got into a deadlock

Explanation:
I had set the min and max connections to 1. My own transaction used the first (and only) connection of the pool. Then the hilo id generator tried to get a second connection from the pool. Since there were no more connections, there was a deadlock. Since i'm quite lazy and rarely read manuals, i would appreciate a special exception message just for me in case i forget it next time :-)

regards, tom.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 28, 2005 1:29 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
It is hard to get an exception from such a case.
Using a connection pool for 1 connection is a bit overkill however ;-)

_________________
Emmanuel


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.