-->
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: time outing for postgresql 8.0
PostPosted: Tue Jul 12, 2005 3:23 am 
Newbie

Joined: Tue May 03, 2005 6:41 pm
Posts: 6
Hibernate version:
jboss 4.0.2RC1 hibernate 2,
Name and version of the database you are using:
postgresql 8.0

I met following problem when I tried to lock a record using

HibernateUtil.getSession().lock(account, LockMode.UPGRADE);

the thread was stopped waiting a result from the db. It was waiting for a very long time.
Could anyone share with me his experience how to use timeouts on db queries for postgresql to prevent the thread to hang for undefined time?

I found a <new-connection-sql> inside data-source.xml
But how it behaves on reusable connections staying in the pool ?

Thanx in advance
Alex


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.