-->
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.  [ 3 posts ] 
Author Message
 Post subject: Pinging a database
PostPosted: Tue Aug 02, 2005 5:26 pm 
Newbie

Joined: Tue Aug 02, 2005 5:22 pm
Posts: 1
I need to ping a database to check if it's up or not. Is there a more efficient way of doing this than sending off a random query and catching exceptions?


Top
 Profile  
 
 Post subject: Re: Pinging a database
PostPosted: Tue Aug 02, 2005 8:36 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
docstech wrote:
I need to ping a database to check if it's up or not. Is there a more efficient way of doing this than sending off a random query and catching exceptions?


You realize that this is a Hibernate forum right ?

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 03, 2005 5:10 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
You mean reconnect ?

Thats addressed in the connection pool you use.
With hibernat usually c3p0.
Here is some info:

http://www.mchange.com/projects/c3p0/index.html
see chapter „Configuring Connection Testing“ and Appendix D

and
http://forum.hibernate.org/viewtopic.ph ... =reconnect


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.