-->
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: Restoring connection to database.
PostPosted: Mon Feb 09, 2004 2:20 am 
Newbie

Joined: Mon Feb 09, 2004 1:40 am
Posts: 13
Location: Moscow, Russia
Let we have jboss running on the server and deployed application (based on Hibernate) working with some database server.

Suppose system administrator has rebooted database server (but not jboss, or another appserver).

Is there way to "transparent" restore cottection to database after reboot, without redeploy and server restart? Does hibernate support this feature, or how can I obviously reset Hibernate's database connection state?

_________________
God is Real, unless declared as Integer.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 09, 2004 5:06 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
I would think that this is a function of your database driver and not Hibernate.

If your driver doesn't support validation of connections, you could of course wrap your driver and validate a connection before handing it off if you wanted a custom solution. (You may also have to do this in you DB Connection pool).


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.