-->
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: detect a dead db connection
PostPosted: Wed May 24, 2006 1:47 am 
Newbie

Joined: Wed May 24, 2006 1:39 am
Posts: 1
Hibernate version:
3.1.2

Name and version of the database you are using:
oracle 10.2 on linux



Hi

We need a way to trap a dead db connection or problem creating a db connection, what kind of solutions are there? We dont want to trigger on every errors but just this kind of error (if this error occurs the application should exit , if we get other kinds of errors it shouldn't)

Thanks in advance

/Johan


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 24, 2006 11:44 am 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
I think this is the responsibility of connection pool. And they have ways to deal with that already, for example they can verify connection before returning it to the requester. Please look at c3p0 for example
http://www.mchange.com/projects/c3p0/in ... on_testing

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.