-->
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: Dynamic reconnection to DB in hibernate
PostPosted: Thu Nov 19, 2009 9:18 am 
Newbie

Joined: Thu Nov 19, 2009 2:47 am
Posts: 1
Hi,

I am new to Hibernate. I have created a basic database application using Hibernate in java.
My doubt is that how can I switch from one host to another, which contains the same DB schema at runtime.

Suppose my "connection.url" is "jdbc:oracle:thin:@host1:1521:sid"
Now without stopping the application can i change to some other host like "jdbc:oracle:thin:@host2:1521:sid" say after 1 hour?

Could anyone provide an input
Thanks in advance.


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.