-->
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: How do I use a reserved database?
PostPosted: Mon Apr 02, 2007 5:22 am 
Newbie

Joined: Mon Apr 02, 2007 4:19 am
Posts: 2
Hi!

I have two databases, a production and a reserved one. How can I configure hibernate to connect to the second one, if the first one is down for some reason?

Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 10:26 am 
Newbie

Joined: Thu Feb 22, 2007 9:49 am
Posts: 9
This doesn't sound like something that should be supported at the Hibernate level, or even the connection pool level. To implement fail-over redundancy, you probably want to look at deploying a database cluster (such as: http://www.mysql.com/products/database/cluster/).

As far as Hibernate (or c3p0 or whichever connection pool you use) is concerned, there is only one database, the redundancy is handled transparently by the cluster server.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 3:47 am 
Newbie

Joined: Mon Apr 02, 2007 4:19 am
Posts: 2
Thanx for the answer.


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.