Harry Potter and the lost Weblogic-database connection

Hi All,

I don't know if this is the correct forum, but here goes...

I'm working with Weblogic, connecting to an Oracle database on a rather unstable network. From time to time, the connection to the database is lost, and at the moment, this means having to restart weblogic.

Is there any way to configure weblogic to automatically reconnect to a database if the connection is lost and then restoired?

Thanks in advance for your help.

[467 byte] By [Malcovitcha] at [2008-1-9]
# 1
Aren't you using connection pooling? http://e-docs.bea.com/wls/docs70/jdbc/programming.html
nikki96a at 2007-7-10 > top of java,Enterprise & Remote Computing,AVK Portability...
# 2

you should have a connection pool setup in weblogic and if the connection is bad, you return gracefully from that method/class, then when you try again you'll acquire a fresh connection

but you absolutely SHOULD NOT have to restart the server for this

even if the db server goes down and gets rebooted you shouldn't have to restart weblogic

wbrackena at 2007-7-10 > top of java,Enterprise & Remote Computing,AVK Portability...
# 3

Thanks for the replies. I had rummage through the configuration (this is the first time I've worked with Weblogic) and found a setting; "Refresh Period", which I duly set to 1 minute. I also ticked "Test Reserved Connections" and "Test Released Connections". I rekcon that's what I needed..

Cheers folks!

Malcovitcha at 2007-7-10 > top of java,Enterprise & Remote Computing,AVK Portability...