-->
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: Auto-Reconnect after database server down ???
PostPosted: Tue Oct 05, 2004 9:59 pm 
Newbie

Joined: Tue Aug 24, 2004 4:25 am
Posts: 14
Hibernate version: 2.1.6

Hi all,

I am using Hibernate with c3p0 as Db Connection Pooling manager. Oracle database server in my company downs at midnight every day to backup data. How can I confirgure hibernate/c3p0 to auto-reconnect if database server down?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 2:06 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
http://www.hibernate.org/214.html

<property name="c3p0.idle_test_period">100</property> <!-- seconds -->

if your db is down at t, c0p3 will be able to reconnect at t + 100s

Be carefull, if your db is down more than 100s, your app is dead.

Go and see last version of c3p0, there are new features like "i want to test every x seconds and y times, after that my app will condirer the db as definitly dead".

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


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.